Refine calculation