function getYearRatio(price, yearIndex, interestRate) {
if (!yearIndex--) return price;
else return getYearRatio(price, yearIndex, interestRate) + getYearRatio(price, yearIndex, interestRate) * interestRate
}
function getYearRatio(price, yearIndex, interestRate) {
if (!yearIndex--) return price;
else return getYearRatio(price, yearIndex, interestRate) + getYearRatio(price, yearIndex, interestRate) * interestRate
}