calcuating days for second month