Pr-Rata salary calculation

SUGGESTED

Good day

What is the best method to use to calculate an employee's pro-rata salary?  And how do you capture the amount in payroll.

Thank you