Calculates a binary expression