notification calculation