Fixed undefined no of days

Fixed this issue.
nit: remove the blank line 137.