Macheda plans to quit Man Utd at end of season