daysafter PowerHome formula function
Description
Given a valid date value (either the output of a function eg, today() or a date 'literal' value such as 2010-12-15) this function determines the number of days one date occurs after another.

See the  Date / Time Functions  section for detailed information concerning date / time formats.

Syntax
daysafter ( date1, date2 )
Argument Description
date1 A date value that is the start date of the interval being measured
date2 A date value that is the end date of the interval

Return value
Long. Returns a long containing the number of days date2 occurs after date1. If date2 occurs before date1, DaysAfter returns a negative number.

Examples
The following examples demonstrate typical syntax/usage for this function.
• daysafter(date(today()), date("2015-1-17")) --> evaluates to: 2
• daysafter(2015-01-15, date("2015-1-17")) --> evaluates to: 2
• dayafter(2015-01-15,2015-01-17) --> evaluates to: 2