Fixing the "next" button freeze issue

Delaying the calendar calculation for 400ms to fix the issue. Need some
time to have a better fix. As of now, this hack works for desktop
browsers.