In the UPS Server behavior, enter the following code for the weight:
<?php echo (abs($eCart1->DisplayInfo("Quantity")>1)?$eCart1->DisplayInfo("Quantity")+1:($eCart1->DisplayInfo("Quantity")*2)); ?>
you will also need to create a second shipping rule to apply the flat rate $5 charge.