Use Runway’s date math functions to model prorated salaries for employees who start or leave mid-month with precision.
Prorated Monthly Salary
fieldif()
statement that checks if the start date falls within the current month.dateDiff()
function to calculate the difference in days between the start date and the end of that month. You’ll also want to add 1 day onto this, to ensure you’re including the starting day too.daysInMonth()
to divide by the total days in the month and calculate the prorated percentage.IF()
formula to account for employees who terminate mid-month by adding a second condition.
IF()
statement by copying the formula so far, and pasting it at the end.This Employee.Start Date
to This Employee.Termination Date
by clicking on each reference of This Employee.Start Date
-> hitting Column -> and then referencing This Employee.Termination Date
instead.