Spot the error... nested template

ok, thanks.
for reference, this is the thread we discussed that earlier.

Still annoyed by the fact I don’t understand why my 84.3 template failed doing 31+1-31 and didn’t doing 30+2-31, 29+3-31, etc etc.

Hope time will tell if my current template (with the amended |int) is doing better now. In 2 months… :wink:

there wouldn’t be a way to use %j in the current template? given the fact it calculates the day number perfectly. It might be easier than adding a delta, subtracting the days of the current month and substituting the current month with the next…

–edit–
just remembered I can’t use the |int in the {% set%} section, because it makes ‘Not set’ into 0… which kills the template if not set…

will have to make a catch for that in a newer iteration .