NumberF.DateCalculations (NumberF v0.1.5)

View Source

Functions for performing date-based calculations.

Summary

Functions

Calculates the date after adding a specified number of business days.

Calculates the number of business days between two dates.

Calculates age based on birth date.

Calculates the number of days between two dates.

Determines if a date is a business day.

Calculates the next business day after the given date.

Calculates payment due date based on invoice date and terms.

Functions

add_business_days(date, num_days)

Calculates the date after adding a specified number of business days.

business_days_between(date1, date2)

Calculates the number of business days between two dates.

calculate_age(birth_date)

Calculates age based on birth date.

days_between(date1, date2)

Calculates the number of days between two dates.

is_business_day?(date)

Determines if a date is a business day.

next_business_day(date)

Calculates the next business day after the given date.

payment_due_date(invoice_date, terms_days)

Calculates payment due date based on invoice date and terms.