block value calculation