I don't know what you mean by calculating the duration of lossless songs.
If you just want to know the length of this file, you can see it directly in the playback software.
I believe you didn't use Qian Qian to listen, did you? Ha ha.