add advanced calculations