When is it time for a new board?

When do you know it’s time for a new board? How long do you guys usually keep a board? I have a few old, beat-up boards but I’m not sure if I should keep riding them? Trash em? Burn em? Or just hold onto the things?