{"data":{"slug":"verlust-aufholen","title":"Loss recovery calculator","description":"How large a gain makes up a loss?","endpoint":"/api/v1/public/calculators/verlust-aufholen","methodology":"https://investboard.com/calculators/api/methodology#calculator-verlust-aufholen","inputSchema":{"type":"object","properties":{"lossPct":{"type":"number","exclusiveMinimum":0,"exclusiveMaximum":100,"default":30,"description":"The fall, percentage points above 0 and below 100: 30 means 30%."},"portfolioValue":{"type":"number","minimum":0,"maximum":100000000,"default":0,"description":"The value before the fall; 0 leaves valueAfterLoss and amountToRecover out (null)."},"annualReturnPct":{"type":"number","minimum":0,"maximum":15,"default":7,"description":"Steady yearly return for the recovery time, percentage points; 0 leaves yearsToRecover out (null)."},"currency":{"type":"string","enum":["EUR","USD","GBP","CHF","PLN","CZK"],"default":"EUR","description":"Unit of every amount in the inputs and the result. The math is the same in every currency; German tax requires EUR."}},"additionalProperties":false},"resultSchema":{"type":"object","properties":{"requiredGainPct":{"type":"number","description":"Percentage points: 4 means 4%."},"yearsToRecover":{"type":["number","null"],"description":"Null when annualReturnPct is 0."},"valueAfterLoss":{"type":["number","null"],"description":"Null when portfolioValue is 0."},"amountToRecover":{"type":["number","null"],"description":"Null when portfolioValue is 0."},"table":{"type":"array","items":{"type":"object","properties":{"lossPct":{"type":"number","description":"Percentage points: 4 means 4%."},"requiredGainPct":{"type":"number","description":"Percentage points: 4 means 4%."}},"required":["lossPct","requiredGainPct"],"additionalProperties":false},"description":"The common falls 10, 20, 30, 40, 50 and 60%."}},"required":["requiredGainPct","yearsToRecover","valueAfterLoss","amountToRecover","table"],"additionalProperties":false},"operationId":"calculateVerlustAufholen","example":{"inputs":{"lossPct":30,"portfolioValue":0,"annualReturnPct":7,"currency":"EUR"},"locale":"en"}},"error":null,"meta":{}}