How is income divided at divorce?

Additional info: For MA, I’ve heard 30% of the difference in income is typically paid from the higher income spouse to other spouse as alimony until retirement. Does this include only primary job, or also occasional consulting, book royalties, etc? What if income spikes or falls in some years? What if someone quits or gets…