| 881 | } |
| 882 | |
| 883 | Date BillingPeriod::endDate() const { |
| 884 | Date result = this->startDate() + Time(this->numberOfDays() - 1); |
| 885 | return result; |
| 886 | } |
| 887 | |
| 888 | unsigned BillingPeriod::numberOfDays() const { |
| 889 | boost::optional<unsigned> numberOfDays = getUnsigned(OS_UtilityBillExtensibleFields::NumberofDaysinBillingPeriod); |