Calculates a paycheck