i found the theme problem for the width screwing up

i don't quite understand whats with all the math in here in. also, this code overwrites the css file. as in general.css states the width is 640px then in the core.php it overwrites it to 900px. it seems to ignore the theme and use bp-default.

core.php line 356

<style type="text/css">
<?php
if (get_template() == 'bp-default') {
	$bp_max_width = 1200;
	$bp_min_width = 920;
?>
div#sidebar { margin-left: 0; }
div#content .padder { margin-right: 0; }
#qa-page-wrapper, #content { width: 80%; max-width: <?php echo $bp_max_width - 212; ?>px; min-width: <?php echo $bp_min_width - 210; ?>px }
#question-form table { max-width: <?php echo $bp_max_width - 210 - 6; ?>px; min-width: <?php echo $bp_min_width - 210 - 6; ?>px }
.question-summary { max-width: <?php echo $bp_max_width - 210 - 116; ?>px; min-width: <?php echo $bp_min_width - 210 - 116; ?>px }
<?php
} else {
?>
#qa-page-wrapper { width: <?php echo $width; ?>px }
#question-form table { width: <?php echo $width - 6; ?>px }
.question-summary { width: <?php echo $width - 116; ?>px }
<?php } ?>
</style>