How to Calculate Percentage in Excel #shorts

by Leila Gharani · published 2021-08-29

Total watch time

20s

at speed · exactly 20 seconds at 1×

20s
1.25×16s
1.5×13s
1.75×11s
10s
Compare Open on YouTube JSON

Embed a badge

Show the length in a README or course description — it links back here and updates itself

Length: 20s

Markdown
[![Length: 20s](https://playlistduration.com/badge/video/trG79GiqJ28.svg)](https://playlistduration.com/video/trG79GiqJ28)
HTML
<a href="https://playlistduration.com/video/trG79GiqJ28"><img src="https://playlistduration.com/badge/video/trG79GiqJ28.svg" alt="Length: 20s" width="88" height="20"></a>

Add ?speed=1.5 to the image URL for the time at that speed, ?label=Course to change the left text, or ?style=flat-square for square corners.

Want the numbers themselves? GET https://playlistduration.com/api/v1/video/trG79GiqJ28 returns them as JSON — free, no key. API docs →

Data from the YouTube Data API as of 2026-09-22 (cached).