nopoal
There is an easyer way to calculate the figures.
Download an electronic logbook software, also in trial version, and enter icao code and times for your trip.
For sure you will find inside a page or a sub-page where it shows you the real night hours (and minutes too !) according the flight.
Software takes care of the different (if any) local time on dep & destn.
Hope this helps.