hello. Im sorry but could you help me.

I need an excel equation for the first 3 miles at $7.87 per mile, $3.50 per mile for the next 7 miles and $3.25 per mile after that. Then multiplied by 1.27 (27 percent) which is actually the total of a 3%, 11% and 13% charge. could you help me?