Sales consultant payment plan

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Slider - Range with fixed maximum</title>


</head>
<body>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<div class="containerCalc commissionCalc">

<div class="u-margin-bottom-meduim">
<h3 class="alttitle u-margin-bottom-meduim">Please Select the Value:</h1>
<div id="slider-range-max">
<div id="custom-handle" class="ui-slider-handle"></div>
</div>
</div>
<div class="form__radio u-margin-bottom-meduim">
<div class="form__radio-inline">
<input type="radio" id="ag_sale" name="commission" value="AG Sale" checked>
<label for="ag_sale">AG Sale</label>
</div>
<div class="form__radio-inline">
<input type="radio" id="non-ag_Sale" name="commission" value="Non-AG Sale">
<label for="non-ag_Sale">Non-AG Sale</label>
</div>
</div>
<div class="commission-output">
<h3><span id="commission"></span></h3>
</div>
</div>
<script>
$(function() {

init();

function init(){
var handle = $( "#custom-handle" );
$("#slider-range-max" ).slider({
range: "max",
min: 0,
max: 250000,
value: 0,
slide: function( event, ui ) {
comission(ui.value);
handle.text(ui.value );
},
create: function(event, ui) {
handle.text($(this).slider("value"));
},
});
comission($("#slider-range-max").slider("value"));
$('input[name=commission]').click(function(){
comission($("#slider-range-max").slider("value"));
})
}

function comission(value){
var comissionType = $('input[type=radio]:checked').val();
var commissinPercentage = commissoinPercentage(comissionType,value)
var commission = Math.round(calcCommission(value,commissinPercentage));
//console.log(comissionType,commissinPercentage,commission);
$("#commission").text(`Type:${comissionType}, --- Percent : ${commissinPercentage}%, ---- Commissoin Price : ${commission}`);
}

function commissoinPercentage(type, priceValue){
if(type == 'AG Sale'){
if(priceValue >= 0 && priceValue <= 59000){
return 12.0;
} else if(priceValue >= 60000 && priceValue <= 99999){
return 13.0;
} else if(priceValue >= 100000 && priceValue <= 149999){
return 13.5;
} else if(priceValue >= 150000 && priceValue <= 199999){
return 14.0;
} else if(priceValue >= 200000 && priceValue <= 249999){
return 14.5;
} else {
return 15;
}
} else if(type == 'Non-AG Sale') {
if(priceValue >= 0 && priceValue <= 59000){
return 13.0;
} else if(priceValue >= 60000 && priceValue <= 99999){
return 14.0;
} else if(priceValue >= 100000 && priceValue <= 149999){
return 14.5;
} else if(priceValue >= 150000 && priceValue <= 199999){
return 15.0;
} else if(priceValue >= 200000 && priceValue <= 249999){
return 15.5;
} else {
return 16;
}
}
}

function calcCommission(value,precentage){
return (value * precentage) / 100;
}

});
</script>
<style>
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
.containerCalc{
max-width: 800px;
width: 100%;
padding: 0 15px;
margin: 50px auto;
border:1px solid #ccc;
border-radius: 40px;
padding: 40px 20px;
}
#custom-handle {
width: auto;
height: 25px;
line-height: 25px;
top: 50%;
margin-top: -.8em;
text-align: center;
padding: 0 5px;
}
.u-margin-bottom-meduim{
margin-bottom: 40px;
}
.form__radio{
display: inline-block;
width: 100%;
padding: 0 10%;
}
.form__radio-inline{
width: 50%;
display: inline-block;
float: left;
text-align: center;
}
.form__radio:after{
content: '';
display: table;
clear: both;
}
</style>
</body>
</html>