block coefficient calculator