I think this is better : I am sure that the cake will have been eaten by the time I come back home . Future perfect is used to indicate the completion of an action by a certain future time . Would is normally used for a future reference in past tense.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.