Calculating Episode Length for Podcast Themes, RSS

Is there currently a way to calculate the length of an episode when using one of the podcasting themes? The official tutorial on setting up a proper podcast RSS feed does not include any information about this; rather, it includes a line that explicitly sets the length at zero:

<enclosure url="{{og_description}}" length="0" type="audio/mpeg"/>