...
When time is "daytime" and day is "weekday" the heating is "normal". Otherwise (This sets temp to 70.
Otherwise, when time is "nighttime" or day is "weekend", the heating is "economical").If the heating is "normal", temp will be set to 70, otherwise if it is "economical", temp will be set . This sets temp to 50.