I have a program for finding the short rate of a cancellation and I've run into a snag.
When I run this, my Factor goes in as 0.01149 then once I multiply the ShortFactor it shows up as 5.745. How do I multiply 50%? I tried adding zeros and as you can see I tried storing the value in a variable and I tried putting quotes around it. I'm kind of at a loss. On a calculator I should be coming up with 0.0005745![]()
Sub ShortRating() 'for short rate Dim Factor As Double Dim ShortFactor As Double Factor = 0.988950276 Factor = 1 - Factor ShortFactor = Factor * 0.5 Factor = Factor + ShortFactor Msgbox Factor End Sub
Bookmarks