How to measure for your gate