As you can see its using $deadline and $partenze fields.
You should use above shortcode as [show_status] wherever you want to display the status.
- if [partenze] is equal to [today] = Close
==> OK - its covered
- if [booking-deadline] is equal to [today] = Last day
==> Ok - its covered
- if [partenze] is lower then [today] and [booking-deadline] is lower then [today]= Close
==> No need for this conditions as [partenze] is lower then [today] we want to display the status = Close.
- if [partenze] is greater then [today] and [booking-deadline] is lower then [today]= On request
=> OK - its covered
- if [partenze] is greater then [today] and [booking-deadline] is greater then [today]= Open
==> Ok, its covered.