Add "calc machi-hai" logic.