add_action('woocommerce_cart_calculate_fees', 'add_custom_fees');

function add_custom_fees() {
    $items = WC()->cart->get_cart(); //get all items from cart
    $total_transport_cost = 0; //Custom fee as transportation fee
    foreach ($items as $item => $values) {
        $_product = wc_get_product($values['data']->get_id());
        $price = get_post_meta($values['product_id'], '_price', true);
        $reg_price = get_post_meta($values['product_id'], '_regular_price', true); //Show Regular Price As WooCommerce        
        $transportation_cost = $reg_price * $values['quantity']; //Multiplying price and Qty to check total
        $cost += $transportation_cost + 4.95; // custom fee
    }
    WC()->cart->add_fee('Trasport Fee', $cost); //It will add discount price
}