Passing CYLC_TASK_CYCLE_POINT to jinja filter

@oliver.sanders @hilary.j.oliver Thanks. I understand this. I felt this would be the case, but I got confused by an earlier thread where jinja was mentioned as a possible solution. (Arithmetic with $CYLC_TASK_CYCLE _POINT in standard date/time format - #2 by sadie.bartholomew )

Anyways, what I actually need to do is to find the exact number of days between two task cycle points. I will be providing the CYCLE_INTERVAL in years, e.g ‘P10Y’. I was thinking of writing a Python script that will take the ‘CYCL_TASK_CYCLE_POINT’ and ‘CYCLE_INTERVAL’ and return the duration in days.

Is there any better way to do this?

Thanks