You only have to pay for the extra kilometers.
If you selected the 300km package but traveled 350km, you will have to pay for the extra 50 kilometers based on the price for the extra kilometer.