Calculating payrate