# Calculating median using dates [closed]

I am trying to calculate the median, using a set of dates as a criteria.

I just cannot get it to work

In the example screenshot, I have attempted to get it to calculate the median for January. The result should be 5.

When I attempt to calculate for month = December, it calculates the median using all 4 values (including January)