Help with Excel Macro to computer investment return
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
Code:
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? |