bitrate calculations