i do not agrre that it’s a problem of passing parameters to the function, the same thing works well with other values for year (x>10).
imho the problem is that in this part of the function income:
if (year * perYear) > numOf then
Income = numOf * incomeForOne
’
’ percentOfYear = 100 - ((yearI / peryear) * 100)
’ Income = ( incomeForOne * (percentOfYear / 100))
else
if (year * perYear) > 1 then
accu = ((year - 1) * perYear) * incomeForOne
end if
none of the conditions is fulfilled for year values <=10, and thus no result evolves … ???