I posted an order on the last day of the month, but it was only matched the following trading day, which was in the next calendar month, will that trade be included in my calculation?

No, only matched trades within the same calendar month will be included in the calculation.