A calculator for C51