https://alandroidnet.com/related/math shortcut method