Updated bad logic in pay per hour