Your assessment of the function is close, but doesn't correspond with the given graph. What is the value of S(t) at t = 0.002? According to your definition it is 2, but according to the graph it seems to be undefined. Furthermore, the Fourier transform integral ranges from negative infinity to positive infinity, not 0 to 0.001.So i am trying to calculate the fourier transform of this waveform.