Trying to solve a problem(javascript, moment)
Let's say there are three days, 30th Dec, 31st Jan and 2nd March.
I want to be able to calculate an average number of days between the three, i.e from observation should be around 1st of the month.
However, I can't do that with basic maths adding all 3 and dividing by 3 as months are cyclic.