calculating days rent in hotel from checkin and checkout--asp, c# : check-in time and checkout time days rent calculating. if check-in at 31-08-2016 and checkout at 01-09-2016  then it was calculating rent to 30 days

            char sp = '/';
            string[] date = checkin.Split(sp);
            string[] date2 = checkout.Split(sp);
            int c1 = Convert.ToInt32(date[0]);
            int c0 = Convert.ToInt32(date2[0]);
            totday = c0 - c1;