In engineering practice, analog signal that is transformed with Fourier Transform has to be periodic. If signal is not periodic, but limited to certain time interval, signal can be repeated, so formally can be treated as periodic one.
Read more:
formatting link
and also online calculate DFT coefficients of an arbitrary signal:
formatting link