automized cell calculation