in your formula are you sure that at the denominator is “2*(invested funds/2)”? Shouldn’t it be “1/2*(invested funds/2)”?