theres not really a script that will do this for you, you need to write the code to do the math on the returned values.
for example, if the values are coming from a recordset:
<?php echo("The Total Is: ".($row_RecordsetName['column1'] + $row_RecordsetName['column2']).""); ?>