User:Sirwhiteout/Sandbox/Selune-phase

It has been days since Selûne was full.

Test variables
What day it is (test):

Duration of the synodic month:

How many days since Jan 1st of the last leap year (test):

What day of the lunar cycle it is (test):

Parameters for today
How many days since last Jan 1:

How many years since the last leap year:

How many days since Jan 1 of the last leap year:

What day of the lunar cycle it is (goes from 0 to 30):