The following applies to ketoconazole in "aqueous solution" meaning the form studied is a solution of water. The basic answer, this form has a shelf life of 15 months.
See
http://www.ncbi.nlm.nih.gov/pubmed/10722946
or
http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6T7W-3YTJD3S-1&_user=10&_coverDate=03%2F30%2F2000&_rdoc=1&_fmt=high&_orig=gateway&_origin=gateway&_sort=d&_docanchor=&view=c&_searchStrId=1714368961&_rerunOrigin=Google&_acct=C000050221&_version=1&_urlVersion=0&_userid=10&md5=16ec7c7f032d198b17dd01a6ccca33ee&searchtype=a
Chat with our AI personalities
Drugs have an expiration date on the bottle. You have to look at that date to see how long the medicine is stable - if it is a smaller bottle from a pharmacy, you shouldn't keep it for more than a year from the date it was dispensed because you don't know what the original expiration date of the nystatin might have been.
You will have to look on the bottle to find how long is left. There should be an expiration or best by date there.
5 years if stored under proper conditions, (i.e. temperature below 25 C. and avoidance to light)