// Numbas version: finer_feedback_settings {"name": "present value - deferred annuity", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "present value - deferred annuity", "tags": [], "metadata": {"description": "Financial maths. Present value of an ordinary annuity.", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

If you are unsure of how to do a question, click on Reveal answers to see the full working. Then, once you understand how to do the question, click on Try another question like this one to start again. Do each question repeatedly to ensure you have mastered it.

", "advice": "

You are asked to find the present value of a deferred annuity (since the payments start after some time periods). Therefore we will use the present value of a deferred annuity formula

\n

$\\displaystyle P=\\frac{1}{(1+i)^{k-1}}\\frac{C}{i}\\left(1-\\frac{1}{(1+i)^n}\\right)$

\n

where $P$ is the present value, $k$ is the number of time periods until the first cash flow, $C$ is the cash flow per period, $i$ is the interest rate per period, and $n$ is the number of periods.

\n

In our situation we have,

\n

$k=\\var{k}$,

\n

$C=\\var{C}$,

\n

$i=\\frac{\\var{ipa}\\%}{\\var{period[1]}}=\\frac{\\var{ipadec}}{\\var{period[1]}}$, $i=\\var{ipa}\\%=\\var{ipadec}$,

\n

$n=\\var{years}\\times \\var{period[1]}=\\var{n}$, $n=\\var{n}$,

\n

and therefore we have

\n

$\\displaystyle P=\\frac{1}{\\left(1+\\simplify[unitDenominator]{{ipadec}/{period[1]}}\\right)^{\\var{k}-1}}\\frac{\\var{C}}{\\left(\\simplify[unitDenominator]{{ipadec}/{period[1]}}\\right)}\\left(1-\\frac{1}{\\left(1+\\simplify[unitDenominator]{{ipadec}/{period[1]}}\\right)^\\var{n}}\\right)$

\n

Calculating this we find 

\n

$\\begin{align}P&\\approx \\var{P}\\\\&=\\$\\var{Prounded}\\quad \\text{(to the nearest cent)}\\end{align}$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "years*period[1]", "description": "", "templateType": "anything", "can_override": false}, "Prounded": {"name": "Prounded", "group": "Ungrouped variables", "definition": "precround(P,2)", "description": "", "templateType": "anything", "can_override": false}, "ipadec": {"name": "ipadec", "group": "Ungrouped variables", "definition": "random(0.02..0.10#0.001)", "description": "

interest rate per annum as a decimal

", "templateType": "anything", "can_override": false}, "C": {"name": "C", "group": "Ungrouped variables", "definition": "if(period[1]=365,random(1..10),random(20..300#10))", "description": "", "templateType": "anything", "can_override": false}, "k": {"name": "k", "group": "Ungrouped variables", "definition": "if(period[1]=365,random(floor(n/10)..floor(n/2)),random(5..2n))", "description": "", "templateType": "anything", "can_override": false}, "years": {"name": "years", "group": "Ungrouped variables", "definition": "random(4..20)", "description": "", "templateType": "anything", "can_override": false}, "P": {"name": "P", "group": "Ungrouped variables", "definition": "(C*period[1]/ipadec)*(1-(1+ipadec/period[1])^(-n))*(1+ipadec/period[1])^(1-k)", "description": "", "templateType": "anything", "can_override": false}, "period": {"name": "period", "group": "Ungrouped variables", "definition": "random([random('yearly','annually'),1,'year'],[random('half-yearly','semiannually'),2,'half-year'],['quarterly', 4, 'quarter'],['monthly',12,'month'],['daily', 365,'day'])", "description": "", "templateType": "anything", "can_override": false}, "ipa": {"name": "ipa", "group": "Ungrouped variables", "definition": "ipadec*100", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["years", "period", "ipadec", "ipa", "C", "n", "P", "Prounded", "k"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Suppose in $\\var{k}$ {period[2]}s you will be given $\\$\\var{C}$ each {period[2]} for $\\var{years}$ years. If the interest rate is $\\var{ipa}\\%$ per annum compounding {period[0]}, what is this cash flow worth {random(\"now\",\"today\",\"at present\")}?

\n

\n

$\\$$ [[0]] (to the nearest cent)

", "gaps": [{"type": "numberentry", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "minValue": "P", "maxValue": "P", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "precisionType": "dp", "precision": "2", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the nearest cent.", "strictPrecision": true, "showPrecisionHint": false, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "type": "question", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}