Correct days counting