days calculation correted