A simple Bloch equation calculator