Calculation of monthly pay