Displaying drug stock when selecting duration of prescribed drugs