项目作者: Dennis-debug

项目描述 :
The following programming task was set for me during a recent internship to calculate the cash flow of a claimant.
高级语言: C#
项目地址: git://github.com/Dennis-debug/CashFlow.git
创建时间: 2020-11-17T13:59:12Z
项目社区:https://github.com/Dennis-debug/CashFlow

开源协议:

下载


CashFlow

The following programming task was set for me during a recent internship.
Here is the specification:

A person who has a bad motor accident can be awarded a payment stream for the rest of their life by the UK courts.

What we have:

1) The age of the life at the settlement date: 10
2) A series of payments, starting immediately at the settlement date, at the start of each year for n years.
3) A probability of survival for each year of life . i.e. the probability that a y year-old will live to y+1
4) There is a discount rate of 1.5%

What we need:

A C# function that returns, at any point during the payment stream , the ‘value’ of the outstanding series of payments:
1) Discount the cashflow to the specified time
2) Multiply each cashflow by the probability of survival for that age