ucdavis / cecdss-backend

MIT License
0 stars 0 forks source link

Add yearly costs to backend results #25

Closed srkirkland closed 3 years ago

srkirkland commented 3 years ago

Add 4 new fields to yearly results which hold: harvest, transportation moveIn, and total costs. Call them something like HarvestCostPerTon and the formula will be the existing formula divided by (1-moistureContent).

Ex: harvestCostPerTon = (result.totalFeedstockCost / result.totalFeedstock) / (1-result.moistureContent)

Then in the cecdss project use those instead of doing our own calculations, in both results tables and excel export.

srkirkland commented 3 years ago

Also add totalDryFeedstock = totalFeedstock (1-moisture content) totalDryCoproduct = totalCoproduct (1-moisture content)