Introduce domain object BudgetPeriod to getTotalAmountInPeriod method
Remove dead code of throw exception and redundant if condition