A child is to receive a dose of 0.5 teaspoon of cough medicine every 6 hours. If the bottle contains 24 ​doses, how many days will the medicine​ last?