How can i get the duration of conference using JS / Jitsi iFrame API?

Hi There,

How can i get the duration of conference using JS / Jitsi iFrame API ?

Actually, I want to achieve when the participant will end the conference, I can get the conference duration in JS.

Thanks