Use before and after for calculation