В консоли step равен undefind, а нужно, чтобы сохранялись данные из пришедшего ответа.
let step;
$.ajax({
url: "https://kachay.com.ua/calculation_info.php",
dataType: "json",
type: "get",
success: function(res) {
step = res.data.sum_step
}
})
console.log(step)