How long do I have to wait before swimming after eat?

No waiting necessary. It was commonly believed that swimming right after eating would risk stomach cramps while in the water. Severe enough cramping would risk being unable to swim or float and therefore you might drown. Recently this belief was disproven. However, if you are stuffed, i'd still wait until you're more comfortable.