class SpendProfileTableCalculator {

    public List<String> generateSpendProfileYears(ProjectResource project) {
        Integer startYear = new FinancialYearDate(DateUtil.asDate(project.getTargetStartDate())).getFiscalYear();
        Integer endYear = new FinancialYearDate(DateUtil.asDate(project.getTargetStartDate().plusMonths(project.getDurationInMonths()))).getFiscalYear();
        LinkedList<String> years = new LinkedList<>();
        IntStream.range(startYear, endYear + 1).forEach(
                year ->
                    years.add(String.valueOf(year))
                );
        return years;
    }

}