The fact that you still have an old prescription also warrants a comment: you should have finished your course of antibiotics as prescribed.
Shortening does not make sense since it carries a risk for relapse. Try to stick to prescribed durations of therapy in the future. And yes. Dont self-medicate with antibiotics unless discussed with your physician.