MeGUI comes with a bitrate calculator
You don't need to do any calcuations. It detects the type & size of audio used and it generates the average bitrate/target filesize based on the inputted framerate, total frames number, b frames mode on/off and desired container. So far it's giving accurate results.