What is the meaning of calculated as it is used in this sentence from "Ups and Downs"?

He calculated that the ride would be over before she could finish the ice cream sundae he bought her.
A
estimated
B
solved
C
analyzed
D
clarified