Calculate costs / fix styling