The duration of alimony depends on the type of alimony awarded, the length of the marriage, and the applicable provisions of Massachusetts law.