User blog comment:Choocolatiah/Minimising Gem Expenditures/@comment-30299451-20190212170209/@comment-25435121-20190212231837

There are a few spreadsheets you can use. See Thread:202434 and Max Attack and Defense for links to 2 of them