It often improves within 1 to 2 weeks, but it needs medical assessment because a clot can occasionally extend into deeper veins, causing deep-vein thrombosis (DVT). The
NHS overview of phlebitis describes these symptoms and advises evaluation to rule out DVT.
If you mean you have these symptoms, tell me where the pain/swelling is, how long it has been present, and whether you have chest symptoms or one-sided leg swelling.