calculated pay based on hours and amount