I am trying to replicate a built-in function in our application that calculates Days Forward Coverage (How many days can your supply fulfill demands in a given horizon).
I know how to arrive at the desired result which is by manually counting the number of days and now I am trying to figure out what the formula would be to get to the desired result based on the data below.
Current Inventory | Total Demand | Total Supply | Horizon |
---|---|---|---|
523,843 | 1,442,280 | 1,643,843 | 361 days |
The built-in function that we have shows that the Current Inventory
would be able to fulfill future demands for the next 82.81
days.
I'm trying to find what would be the formula that could get me 82.81
days, but no luck so far and I've been stuck on this problem for a week now.