Fix invalid function call
Fix past month to 30 days exactly