i want the code to calculate the netpay formula. This is the code I used, it has no errors in the program but when I run it, it just says build success and doesn't calculate.
package com.mycompany.netpay;
public class NetPay {
public static void main(String[] args) {
}
double h = 40;
double i = 2.00;
double t = 0.22;
double w = 5.00;
double result = (h * w - i) - t * (h * w - i);
}