State tax filing

What is the best way to calculate the three categories included PIP and medical cost?