var temperature = 5;
var itsRaining = false;
var idealtemp = 20;
var minutes;
if (itsRaining || temperature>35 || 0>temperature){
minutes = 0;
}
if (!itsRaining && temperature==20){
minutes = idealtemp;
}
if (!itsRaining && 0<temperature && temperature<=35){
minutes = idealtemp - (temperature - idealtemp);
}
console.log(minutes);