    double input = 1333333333;
    double risi  = 0.01;
    double money = 100;

    int64_t sum = (int64_t)money;
    int moneyCount = 0;
    
    while(sum <= input) {
        money = money + floor(money * risi);
        sum = (int64_t)money;
        moneyCount++;
    }

    NSLog(@"year %d",moneyCount);