I'm writing a simple method which counts how much I need to pay for renting a car. However when I execute it, it always return else statement "nothing" . What is wrong here ?
def rental_car_cost(d)
    case d 
      when  d < 3 
        puts d * 40 
      when  d >=3  &&  d < 7 
        puts d * 40 - 20 
      when  d >= 7 
        puts d * 40 - 50
      else
        puts "nothing"
    end
end
rental_car_cost(5)
nothing
 
    