{"id":"d12ebf34-7b2d-4a2a-b2ca-77cd07a9f397","url":"https://calc.so/c/compound-habit","jsonUrl":"https://calc.so/c/compound-habit.json","title":"Compound Habit","question":"If I invest $10,000 and add $500 a month at 7% a year for 30 years, how much will I have?","sentence":"Investing [initial] upfront and adding [monthly] a month at [rate] annual return for [years] years leaves you with [result]","inputs":[{"name":"initial","label":"$10,000","type":"currency","value":10000,"display":"$10,000","editable":true},{"name":"monthly","label":"$500","type":"currency","value":500,"display":"$500","editable":true},{"name":"rate","label":"7%","type":"percent","value":7,"display":"7%","editable":true},{"name":"years","label":"30","type":"number","value":30,"display":"30","editable":true}],"fixedFacts":[],"formula":"initial * Math.pow(1 + rate / 100, years) + monthly * 12 * (Math.pow(1 + rate / 100, years) - 1) / (rate / 100)","results":[],"result":642887.2683690812,"resultDisplay":"$642,887","resultFormat":{"type":"currency","unit":null},"sources":[],"assumptions":[],"dataNote":null,"confidence":null,"creator":{"handle":null},"lineage":{"parentCalcId":null,"rootCalcId":"d12ebf34-7b2d-4a2a-b2ca-77cd07a9f397","forkedAt":null,"sourceVersionId":null,"remixCount":0,"changes":null},"stats":{"calcCount":1,"viewCount":5,"remixCount":0},"meta":{},"createdAt":"2026-09-18T01:44:09.488227+00:00","updatedAt":"2026-11-16T20:50:19.991726+00:00","version":1,"specVersion":1}