How to get duration (seconds) from current position in sequencer to marked frame?

Is there a built in function to do this that I’m missing?