Incremental vacation balance

How i can make employee vacation balance increase based on his work days in company
for example : Employee vacation balance 30 Days/Year
when his working days is 65 day his vacation balance will be 65 * (30/365)=5.4 days