The court determines alimony by considering a pool of factors. One of these is the length of the marriage. The longer the marriage, the more likely the court is going to award alimony.
Secondly, the income and earning capacity of each spouse, along with their age and health, also come into play. Generally, the idea is to determine the standard of living during the marriage and consider whether or not it would be possible for each spouse to maintain that standard after divorce.
Also, another really important factor in determining spousal support is the contributions made to the marriage by each spouse. This is important because contributions are not limited to money alone but also non-financial ones like caregiving for the home and the children.
Education, job training, and tax implications are also factors that will be considered. Feel free to check out this page for more information on the subject: https://napadivorce.com/