public function calculateUPSShippingPrice(float $totalWeight): float 	{ 		$deliveryPrice = 0;  		switch (true) { 			case $totalWeight <= 0.5: 				$deliveryPrice = $this->price_0_5kg;  				break;  			case $totalWeight <= 1: 				$deliveryPrice = $this->price_1kg;  				break;  			case $totalWeight <= 1.5: 				$deliveryPrice = $this->price_1_5kg;  				break;  			case $totalWeight <= 2: 				$deliveryPrice = $this->price_2kg;  				break;  			case $totalWeight <= 2.5: 				$deliveryPrice = $this->price_2_5kg;  				break;  			case $totalWeight <= 3: 				$deliveryPrice = $this->price_3kg;  				break;  			case $totalWeight <= 3.5: 				$deliveryPrice = $this->price_3_5kg;  				break;  			case $totalWeight <= 4: 				$deliveryPrice = $this->price_4kg;  				break;  			case $totalWeight <= 4.5: 				$deliveryPrice = $this->price_4_5kg;  				break;  			case $totalWeight <= 5: 				$deliveryPrice = $this->price_5kg;  				break;  			case $totalWeight <= 5.5: 				$deliveryPrice = $this->price_5_5kg;  				break;  			case $totalWeight <= 6: 				$deliveryPrice = $this->price_6kg;  				break;  			case $totalWeight <= 6.5: 				$deliveryPrice = $this->price_6_5kg;  				break;  			case $totalWeight <= 7: 				$deliveryPrice = $this->price_7kg;  				break;  			case $totalWeight <= 7.5: 				$deliveryPrice = $this->price_7_5kg;  				break;  			case $totalWeight <= 8: 				$deliveryPrice = $this->price_8kg;  				break;  			case $totalWeight <= 8.5: 				$deliveryPrice = $this->price_8_5kg;  				break;  			case $totalWeight <= 9: 				$deliveryPrice = $this->price_9kg;  				break;  			case $totalWeight <= 9.5: 				$deliveryPrice = $this->price_9_5kg;  				break;  			case $totalWeight <= 10: 				$deliveryPrice = $this->price_10kg;  				break;  			case $totalWeight <= 11: 				$deliveryPrice = $this->price_11kg;  				break;  			case $totalWeight <= 12: 				$deliveryPrice = $this->price_12kg;  				break;  			case $totalWeight <= 13: 				$deliveryPrice = $this->price_13kg;  				break;  			case $totalWeight <= 14: 				$deliveryPrice = $this->price_14kg;  				break;  			case $totalWeight <= 15: 				$deliveryPrice = $this->price_15kg;  				break;  			case $totalWeight <= 16: 				$deliveryPrice = $this->price_16kg;  				break;  			case $totalWeight <= 17: 				$deliveryPrice = $this->price_17kg;  				break;  			case $totalWeight <= 18: 				$deliveryPrice = $this->price_18kg;  				break;  			case $totalWeight <= 19: 				$deliveryPrice = $this->price_19kg;  				break;  			case $totalWeight <= 20: 				$deliveryPrice = $this->price_20kg;  				break;  			case $totalWeight <= 21: 				$deliveryPrice = $this->price_21kg;  				break;  			case $totalWeight <= 22: 				$deliveryPrice = $this->price_22kg;  				break;  			case $totalWeight <= 23: 				$deliveryPrice = $this->price_23kg;  				break;  			case $totalWeight <= 24: 				$deliveryPrice = $this->price_24kg;  				break;  			case $totalWeight <= 25: 				$deliveryPrice = $this->price_25kg;  				break;  			case $totalWeight <= 26: 				$deliveryPrice = $this->price_26kg;  				break;  			case $totalWeight <= 27: 				$deliveryPrice = $this->price_27kg;  				break;  			case $totalWeight <= 28: 				$deliveryPrice = $this->price_28kg;  				break;  			case $totalWeight <= 29: 				$deliveryPrice = $this->price_29kg;  				break;  			case $totalWeight <= 30: 				$deliveryPrice = $this->price_30kg;  				break;  			case $totalWeight <= 31: 				$deliveryPrice = $this->price_31kg;  				break;  			case $totalWeight <= 32: 				$deliveryPrice = $this->price_32kg;  				break;  			case $totalWeight <= 33: 				$deliveryPrice = $this->price_33kg;  				break;  			case $totalWeight <= 34: 				$deliveryPrice = $this->price_34kg;  				break;  			case $totalWeight <= 35: 				$deliveryPrice = $this->price_35kg;  				break;  			case $totalWeight <= 40: 				$deliveryPrice = $this->price_40kg;  				break;  			case $totalWeight <= 45: 				$deliveryPrice = $this->price_45kg;  				break;  			case $totalWeight <= 50: 				$deliveryPrice = $this->price_50kg;  				break;  			case $totalWeight <= 55: 				$deliveryPrice = $this->price_55kg;  				break;  			case $totalWeight <= 60: 				$deliveryPrice = $this->price_60kg;  				break;  			case $totalWeight <= 65: 				$deliveryPrice = $this->price_65kg;  				break;  			case $totalWeight <= 70: 				$deliveryPrice = $this->price_70kg;  				break;  			case $totalWeight > 70: 				$deliveryPrice = $this->min_price_over_70kg * $totalWeight;  				if ($deliveryPrice <= $this->min_price_over_70kg) { 					$deliveryPrice = $this->min_price_over_70kg; 				}  				break; 		}  		return $deliveryPrice; 	}