The bitrate is calculated using the formula: Bitrate = Audio Length (seconds) * Desired Quality (kbps).