Foundation shade

i am having trouble finding the right foundation shade for my skin. my tone changes a lot over the course of the year. i go from medium to tan over the summer and i usually need to find a new shade again. what is the best way to find the perfect foundation shade for your skin?