[YD] - Year Days

01-Sep-2022 · Felix Fung

What is this?

"YD" stands for "Year Days". This payroll variable returns the number of days in the current year. Current Year is determined by the End Date of the Pay Period.

What will the Value be Returned?

Returns the number of days in the year according to the Pay Period End Date.

Usage

Payroll Variable Description Usage
[YD] Returns the number of days in the Current Year Usually as a component to calculate the unit rate
e.g Calculate the year-adjusted daily wages in 2022(Monthly Salary $15,000)
[PR(P1)]*12/[YD]*[PR] for amount set in the Placement profile
=15000*12/365
{"status":"error","code":2,"details":null,"message":"An unexpected error occurred! Enable debug mode for more info: https:\/\/getkirby.com\/docs\/reference\/system\/options\/debug"}{"status":"error","code":32,"details":null,"message":"An unexpected error occurred! Enable debug mode for more info: https:\/\/getkirby.com\/docs\/reference\/system\/options\/debug"}