calculations using mouse db