{csd, bd, p, count} = case {dc, calc, bc} do {1, 1, 1} -> {sd, sd, sdi, 20} {1, 1, _} -> {sd, sd, sdi, 1} {1, _, _} -> {sd, sd, sdi, 20} {_, _, _} -> {dd, dd, dd, 1} end