finished bloodcalc func