Compare what whole life and term policies cost over the same years, and what the extra whole-life premium would grow to if you invested it instead.
Model and assumptions. Both policies are priced from the monthly premiums you enter and held for the same number of years. The difference between the whole life and term premium is treated as money you would have invested at the end of each month at the return you enter, and the result is its future value. Premiums are assumed level for the period. The model leaves out the cash value and dividends a whole life policy builds, the end of coverage when a term expires, and taxes on investment gains, so it shows the cost side of the choice rather than which policy is better.