{"id":"b39bb064-5c8d-40c7-9e32-174a6e0aee90","url":"https://calc.so/c/compound-gains","jsonUrl":"https://calc.so/c/compound-gains.json","title":"Compound Gains","question":"$10,000 at 7% compounded annually for 20 years","sentence":"Investing [principal] at [rate] compounded annually for [years] years, plus [monthly_contribution] a month, grows to [result]","inputs":[{"name":"principal","label":"$10,000","type":"currency","value":10000,"display":"$10,000","editable":true},{"name":"rate","label":"7%","type":"percent","value":7,"display":"7%","editable":true},{"name":"years","label":"20 years","type":"number","value":20,"display":"20","editable":true},{"name":"monthly_contribution","label":"$200","type":"currency","value":200,"display":"$200","editable":true}],"fixedFacts":[],"formula":"principal * Math.pow(1 + rate / 100, years) + monthly_contribution * ((Math.pow(1 + rate / 1200, years * 12) - 1) / (rate / 1200))","results":[],"result":142882.17658996535,"resultDisplay":"$142,882","resultFormat":{"type":"currency","unit":null},"sources":[],"assumptions":[],"dataNote":null,"confidence":null,"creator":{"handle":"brent"},"lineage":{"parentCalcId":null,"rootCalcId":"b39bb064-5c8d-40c7-9e32-174a6e0aee90","forkedAt":null,"sourceVersionId":null,"remixCount":0,"changes":null},"stats":{"calcCount":3,"viewCount":5,"remixCount":0},"meta":{},"createdAt":"2026-10-04T02:17:46.197383+00:00","updatedAt":"2026-11-16T20:50:19.814695+00:00","version":2,"specVersion":1}