added get days functionality for cron job util