The end() method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range ends.
end()
MDN Reference