fix month data calculation