Smartthings Parallelogram Formula