Quite a while
Compared to many other infections these are a longer investment of time and effort.
The germ has gone deep into the hair follicles and require oral medication to reach/eliminate. Difficult cases can take a month or more of medication for final cure. Topical medications can sometimes provide a cosmetic benefit at the level of exposed skin, but won't cure it alone.