[WIP] Add from_date and to_date in attendances logic