Skip to content

Ag Damage, Need to Accommodate Late Planting THEN Impacted.  #28

@Tich1212

Description

@Tich1212

Probably need to return Late costs if conditions are met here:

func (p productionFunction) GetExposedValue(e hazards.ArrivalandDurationEvent) float64 {
hazardMonth := e.ArrivalTime.Month() //iota "enum"
hazardMonthIndex := int(hazardMonth) - 1
// We need to prorate monthly costs later
// This assumes planting on time. Cannot deal with case where you are delayed THEN impacted.
return p.cumulativeMonthlyProductionCostsEarly[hazardMonthIndex]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions