Displaying current stock levels when selecting duration of prescribed drugs