fixed minor bug in days extraction logic