How can I measure the hole in the wall for door installation?

The picture shows the dimensions of the door with the frame and how to measure the opening for door installation. Please take the measure from the floor "tile or wooden panel" inside the house to the top brick level.
The space for the door installation should be between minimum 5mm / 0.2" to 0.8" larger than the overall size of the door with the frame. This space is necessary as it should be filled with foam during the installation. This will also ensure insulation between the wall and the door frame.