fancybox calculator