new file:   calc_eabs.py