Pellet Stove Visualization Chart

The problem:

If you have a certain amount of pellets, how do you know when they will run out depending on how many bags you burn a day?

Hover over the graph to show the expected run out date and how many pellets you can burn to reach that date.

The Math

            var num_pellets = 200;
            var days_from_today = runout_date - current_date;
            var pellets_per_day = num_pellets / days_from_today;

            200 bags of pellets / 20 days = 10 bags of pellets per day
            80 bags of pellets / 90 days = .89 bags of pellets per day