how to bonus calculation