When a court deems a marriage null and void based on a petition, it determines the amount of maintenance to be paid to the opposing party, either in a lump sum, annually, or monthly.