Calculating maximum dimensions of vehicle and product