https://littlebitjohnny.blogspot.com/2016/05/universal-master-code-calculator.html