Using periods and intervals

frequency is now a period between 2 due dates.
begindate and enddate is now an interval.
Next is extracting a budget line.