how to calculate square tapered BB spindle length when coming from external threaded bearings
The spindle length is defined from the crankset, not the frame. There is no relationship between your Tiagra (external) and the future FSA (tapered). You should find with the FSA crankset the data of the required spindle length.