Add a cron job to do accounting every 1st and 15th day of the month