You question is asking for custom development help, we offer custom development assistance through our premiere support service.
your question really goes beyond the scope of this support forum.
I think I Would use a checkbox to allow the user to enter the alternative shipping address, and use javascript to show or hide the alternative shipping fields.
then use PHP variables and store the Alternative shipping values if the alternative shipping option is selected or the initial shipping values if it is not. then use those variables in your recordset to look the shipping cost.