The LCOE and EAC functions have a year parameter which determines which year to calculate the metric for. When calling these functions to generate the output files, agent.year is passed as the year parameter. However, this is incorrect, as by this point agent.year has already been incremented to the next year in the time framework. Thus, the LCOE/EAC values in the output files actually correspond to the wrong year.