RM: added duration in date range method