Tedious but easy math...