Here's the full formula for Donald's potential $30 million payday.