added adv cal
added advanced calc