14 lines
436 B
C#
14 lines
436 B
C#
using System.Linq;
|
|
using EvoCalculator.Core.Calculation.Columns;
|
|
using EvoCalculator.Core.Models.Calculation.Models.Prepared;
|
|
|
|
namespace EvoCalculator.Core.Calculation.Post
|
|
{
|
|
public class NPVNI : BasePostValue<double>
|
|
{
|
|
public void ComputeValue(PreparedValues preparedValues, NPVColumn npvColumn)
|
|
{
|
|
Value = npvColumn.Values.Sum(x => (double) x) / (double) preparedValues.NpvBase;
|
|
}
|
|
}
|
|
} |