This may be worth having as a rough guideline, I copied it down a few years ago to remind me to occasionally have a clear out:
Use by:
Mascara: Three to six months -the wand is coming in close proximity to your eye, so watch out for any contamination.
Powder: These don't deteriorate, so keep anything you like and that suits you.
Lipstick: Three years.
Perfume: Tell by the pungent smell or if the colour has turned significantly darker. To make it last longer, store it away from direct sunlight.
Cleansers, toners and serums: Two years.
Moisturiser: Two years
Eye creams and gels: Two years.
Face masks: Two years, if the product is water based.
Facial scrubs: Two years.
Hand lotions: Two years.
Sunscreen: Eighteen months, but check the label for an expiry date.
Anti-blemish treatments: If it's from the pharmacy, it may have a shorter shelf life. If the product contains antioxidants, look out for any changes in colour.
Hair shampoo and conditioner: Two years.
Nail polish: One year.