Usually the tax depends on the amount of money you pay, not on the number of nights.
Sometimes they use the rate of the first night. But other times they add the rates for the first and scond night (that is the sum of your booking) and divide them in half.