Start by using the debugger.
Put a breakpoint on the line
n = n * t;
And look at what the values are.
Step through the code, at each stage working out what you expect to get before each line is executed.
If your get what yopu expect, move on.
If you don't, you can start looking at exactly why you don't.
We can't do this for you, because we have no idea what "sensible values" would be for your inputs, or any clue as to what this is supposed to do. Without that, we would be working blind.
So try it - debugging is a skill which you have to use to develop properly (like all other skills) and it's best to develop it on a small piece of code instead of trying on a huge one!