to calculate e