@NiteshSingh, AJO is not doing the millisecond multiplication correctly for beyond 24 days (24*86400000). The reason it is showing past date in output for days greater than 24 days is, multiplication is giving value in -ve. To get the correct value for days greater than 24 day, do the calculation o...