No need to shake bro. I usually keep as long as 4 months, honestly can last 6 months easily. Just shake before feeding. Who got so much time to shake everyday.
One way to test if it has spoiled is by smelling it, if it smells funky then it's spoiled. But if you store in fridge it will just smell neutral.