Generally, the second night is formal, as is the second to the last night. If your cruise is port intensive, that's probably all the formal nights. If you have sea days in the middle of the cruise, you will probably have an additional formal night on one of those sea days.

Bill