XHELL
03-13-2021, 01:18 AM
Beginning
Claim Payments
Expenses
Return Premium
Profit Share
Taxes
End of Period
Avg Annual Balance
Interest
Investment Return
I have the above and want to compute the investment return which is intereest x avg annual balance.
Wrote the following UDF:
Sub udf_investreturn()
End Sub
Function investreturn(rate, beginning)
For i = 1 To 10
average_bal = beginning + ending / 2
investreturn = average_bal * rate
Next i
End Function
But my investment return is slighly off. Why?
Claim Payments
Expenses
Return Premium
Profit Share
Taxes
End of Period
Avg Annual Balance
Interest
Investment Return
I have the above and want to compute the investment return which is intereest x avg annual balance.
Wrote the following UDF:
Sub udf_investreturn()
End Sub
Function investreturn(rate, beginning)
For i = 1 To 10
average_bal = beginning + ending / 2
investreturn = average_bal * rate
Next i
End Function
But my investment return is slighly off. Why?