Calculates the weekly pay.