Is it possible to create this?

Is it possible to create this?

Is it possible to make a calculator like this?

To help determine the freight class of your LTL shipment, enter your pallet dimensions and weight below for an accurate density calculation.

Length (in) Width (in) Height (in) Cubic Feet Weight (lbs)
Pallet #1
Pallet #2
Pallet #3
Pallet #4
Pallet #5
Pallet #6
Pallet #7
Pallet #8
Totals
TOTAL DENSITY     0 lbs/cu ft
FREIGHT CLASS     N/A