This should:

  • Take the user’s accrual rate (based on how many hours worked to earn 1 hour of PTO) and their actual working hours, and return the amount of PTO earned.