BlackBirdSR71
New Member
- Joined
- Oct 15, 2018
- Messages
- 6
Hi,
I want to calculate a specific date after x number of days from within following date-range only (table given below)!
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Trip#[/TD]
[TD]FROM[/TD]
[TD]TO[/TD]
[TD]DAYS[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]12-MAR-2015[/TD]
[TD]24-AUG-2015[/TD]
[TD]165[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]20-AUG-2015[/TD]
[TD]15-FEB-2016[/TD]
[TD]179[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]24-MAR-2016[/TD]
[TD]17-AUG-2016[/TD]
[TD]146[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]20-MAR-2017[/TD]
[TD]22-JUN-2017[/TD]
[TD]94[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]19-MAY-2018[/TD]
[TD]04-OCT-2018[/TD]
[TD]138[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]01-MAY-2019[/TD]
[TD]12-DEC-2019[/TD]
[TD]225[/TD]
[/TR]
</tbody>[/TABLE]
STARTING DATE : 12-MAR-2015
5 YEAR PERIOD : 11-MAR-2020
To elaborate further, I want to find an exact date when total trip's days reach 365th day mark and 730th day mark from within these selected dates only. "FROM" date is counted, but "TO" date is excluded from "DAYS" count.
e.g. according to above table, 365th day would be 14th April 2016 ..... and 730th day would be 9th May 2019
Thanks in advance!
I want to calculate a specific date after x number of days from within following date-range only (table given below)!
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Trip#[/TD]
[TD]FROM[/TD]
[TD]TO[/TD]
[TD]DAYS[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]12-MAR-2015[/TD]
[TD]24-AUG-2015[/TD]
[TD]165[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]20-AUG-2015[/TD]
[TD]15-FEB-2016[/TD]
[TD]179[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]24-MAR-2016[/TD]
[TD]17-AUG-2016[/TD]
[TD]146[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]20-MAR-2017[/TD]
[TD]22-JUN-2017[/TD]
[TD]94[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]19-MAY-2018[/TD]
[TD]04-OCT-2018[/TD]
[TD]138[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]01-MAY-2019[/TD]
[TD]12-DEC-2019[/TD]
[TD]225[/TD]
[/TR]
</tbody>[/TABLE]
STARTING DATE : 12-MAR-2015
5 YEAR PERIOD : 11-MAR-2020
To elaborate further, I want to find an exact date when total trip's days reach 365th day mark and 730th day mark from within these selected dates only. "FROM" date is counted, but "TO" date is excluded from "DAYS" count.
e.g. according to above table, 365th day would be 14th April 2016 ..... and 730th day would be 9th May 2019
Thanks in advance!