My program is based on Shipping Charges and what I have to do is tell the user how much tax is due and this will be based on the amount of miles the package travels as well as the weight. Now, I have the code written out, however, the problem I face is that for every 1000 miles traveled the tax goes up. The charges are as seen below:

*************** Table of Charges ******************
Rate per 1000
Weight of Package (Kg) Miles Shipped
************************************************** ***
1 Kg or less $1.70
Over 1 Kg and <= 5 Kg $2.20
Over 5 Kg and <= 10 Kg $6.70
Over 10 Kg $9.80

Cost will be doubled for distance > 1000 miles

So, for instance, if I had a package that weighed 1kg and traveled 2000 miles, its should be: 3.40.

So, my question is how do I have the program determine the tax of the object for every 1000 miles traveled? I thought about using if or switch statements, but that just seemed excessive and there must be a way to tell java for every thousand miles traveled multiply the tax by that number.

What I have so far:

Code:
import java.util.Scanner;
import java.math.*;
public class MyShippingCharges3{
private static double WeightOfPackage;
private static int MilesShipped;
private static double tax = 1.7;
private static double tax1 = 2.2;
private static double tax2 = 6.7;
private static double tax3 = 9.8;
private static double result;
   public static void main(String [] args){
      readData();
      calculations();
      printOutput();
      displayTable();
   }
      
   public static void readData(){
      Scanner sc = new Scanner(System.in);
      System.out.print("Enter weight of package in KG: ");
      WeightOfPackage = sc.nextDouble();
      System.out.print("Enter how many miles the package will travel: ");
      MilesShipped = sc.nextInt();
   }
   
   public static void calculations(){
        if (WeightOfPackage <= 1 && MilesShipped <= 1000){
         result = tax;
            if (MilesShipped > 1000 && MilesShipped < 2000){
               result = tax * 2;
               }
         }
        
        else if (WeightOfPackage > 1 && WeightOfPackage <= 5) {
            result = 1000 / MilesShipped * tax1;
        } else if (WeightOfPackage > 5 && WeightOfPackage <= 10) {
            result = 1000 / MilesShipped * tax2;
        } else if (WeightOfPackage > 10) {
            result = 1000 / MilesShipped * tax3;
        }    }
   
   public static void printOutput(){
       System.out.print("Your cost is: " + result);
   
   }
   
   public static void displayTable(){
   
   
   }
   
}
The calculations method varies slightly because I was trying different things and for some reason, my first calculation outputs 0.0?