ooing calculations