Double in calculations instead of int