changed calc to use ddg api