[ create a new paste ] login | about

Link: http://codepad.org/orZE8xZm    [ raw code | output | fork ]

C, pasted on May 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
    //
//  FinancialImpactViewController.m
//  Equine
//
//  Created by Ali on 12/14/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "FinancialImpactViewController.h"
#import "EconomicDataViewController.h"
#import "RiskViewController.h"
#import "ProbabilitiesViewController.h"
#import "MainViewController.h"
@implementation FinancialImpactViewController

@synthesize costOfVaccinationUVHL;
@synthesize costOfDaysOfTrainginUVHL;
@synthesize costofTreatmentUVHL;
@synthesize number;
@synthesize tblSimpleTable;
@synthesize myArray;
@synthesize tableImageView;
@synthesize titleLabel;
@synthesize title;
@synthesize btn;
@synthesize costOfVaccinationAVHL;
@synthesize costOfDaysOfTrainginAVHL;
@synthesize costofTreatmentAVHL;
@synthesize SAnnvaccinatedTotal;
@synthesize SAnnvaccinatedTotalWG;
@synthesize costOfVaccinationAWGVHL;
@synthesize costOfDaysOfTrainginAWGVHL;
@synthesize costofTreatmentAWGVHL;
@synthesize costOfVaccinationSAVHL;
@synthesize costOfDaysOfTrainginSAVHL;
@synthesize costofTreatmentSAVHL;
@synthesize costOfVaccinationSAWGVHL;
@synthesize costOfDaysOfTrainginSAWGVHL;
@synthesize costofTreatmentSAWGVHL;
@synthesize unvaccinatedTotal;
@synthesize AnnvaccinatedTotal;
@synthesize AnnvaccinatedTotalWG;
@synthesize firstView;
@synthesize secondView;
@synthesize thirdView;
@synthesize fourView;
@synthesize fiveView;
@synthesize SixView,popBgOne,popUpOne,closeButton;
@synthesize SevenView;
@synthesize EightView;
@synthesize NineView,graphButton;
@synthesize TenView;
@synthesize ElevenView;
@synthesize TwelveView;
@synthesize ThirteenView;
@synthesize FourteenView;
@synthesize FifteenView;
@synthesize labelOne;
@synthesize labelTwo;
@synthesize labelThree;
@synthesize labelFour;
@synthesize maximumValue;
@synthesize maximumGraphValue;
@synthesize valueOne;
@synthesize valueTwo;
@synthesize valueThree;
@synthesize thirdViewBorder;
@synthesize testLabel;
@synthesize subViewLand,subView;
@synthesize line1;
@synthesize line2;
@synthesize line3;
@synthesize line4;
@synthesize line5,l1,l2,l3,l4,l5;
@synthesize graphViewOne;
@synthesize graphViewTwo;
@synthesize V1;
@synthesize V2,TextLabel,TextLabelS,TextLabelA,finalMaximum;

-(void)closeButtonAction{

	[self hideItems];
	
	popBgOne.hidden=YES;
	popUpOne.hidden=YES;
	closeButton.hidden=YES;
	
	showUpdatesButton.enabled=TRUE;
	
	line1.hidden=YES;
	line2.hidden=YES;
	line3.hidden=YES;
	line4.hidden=YES;
	line5.hidden=YES;
	
	
	TextLabelAValue.hidden=YES;
	TextLabelBValue.hidden=YES;
	
	
	
	
	l1.hidden=YES;
	l2.hidden=YES;
	l3.hidden=YES;
	l4.hidden=YES;
	l5.hidden=YES;
	
	TextLabel.hidden=YES;
	TextLabelS.hidden=YES;
	TextLabelA.hidden=YES;
	
	
	
	
	
	firstView.hidden=NO;
	secondView.hidden=NO;
	thirdView.hidden=NO;
	fourView.hidden=NO;
	fiveView.hidden=NO;
	SixView.hidden=NO;
	SevenView.hidden=NO;
	EightView.hidden=NO;
	NineView.hidden=NO;
	TenView.hidden=NO;
	ElevenView.hidden=NO;
	TwelveView.hidden=NO ;
	ThirteenView.hidden=NO;
	FourteenView.hidden=NO;
	FifteenView.hidden=NO;
	
	
	firstView.alpha=1;
	secondView.alpha=1;
	thirdView.alpha=1;
	fourView.alpha=1;
	fiveView.alpha=1;
	SixView.alpha=1;
	SevenView.alpha=1;
	EightView.alpha=1;
	NineView.alpha=1;
	TenView.alpha=1;
	ElevenView.alpha=1;
	TwelveView.alpha=1 ;
	ThirteenView.alpha=1;
	FourteenView.alpha=1;
	FifteenView.alpha=1;
	
	
	graphViewOne.hidden=YES;
	graphViewTwo.hidden=YES;
	
	
	
		
		
	
	
	
	
	

}


-(IBAction)graphButtonAction{

	
	appDelegate=[[UIApplication sharedApplication]delegate];

	popBgOne.hidden=NO;
	popUpOne.hidden=NO;
	closeButton.hidden=NO;
	showUpdatesButton.enabled=FALSE;

		
	
	
		
	
	
	
	
	line1.hidden=NO;
	line2.hidden=NO;
	line3.hidden=NO;
	line4.hidden=NO;
	line5.hidden=NO;
	
	
	TextLabelAValue.hidden=NO;
	TextLabelBValue.hidden=NO;
	
	
	
	
	l1.hidden=NO;
	l2.hidden=NO;
	l3.hidden=NO;
	l4.hidden=NO;
	l5.hidden=NO;
	
	TextLabel.hidden=NO;
	TextLabelS.hidden=NO;
	TextLabelA.hidden=NO;
	
	
	NSLog(@"Anuaaly No Guarantee %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee);
		
	if (appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee*number>appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee*number) {
		
		maximumGraphValue=appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee*number;
		
		
		
		
	}
	
	
	else {
		maximumGraphValue=appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee*number;

	}
	
	
	
	
	
		
	
	
	NSLog(@"Maxim Graph Value is %.2f",maximumGraphValue);
	
	if (maximumGraphValue>5 && maximumGraphValue<10) {
		
		maximumGraphValue=10;
		
		
		int newvalue=10/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
   
	else if (maximumGraphValue>10 && maximumGraphValue<15) {
		
	   maximumGraphValue=16;
		
		int newvalue=16/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		NSLog(@"Value 1 %d",newvalue);
		NSLog(@"Value 2 %d",newvalue1);
		NSLog(@"Value 3 %d",newvalue2);
		NSLog(@"Value 4 %d",newvalue3);
		
		
	}
	
	
	else if (maximumGraphValue>15 && maximumGraphValue<25) {
		
		maximumGraphValue=24;
		
		int newvalue=24/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	
	
	else if (maximumGraphValue>25 && maximumGraphValue<40) {
		
		maximumGraphValue=40;
		
		int newvalue=40/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	else if (maximumGraphValue>40 && maximumGraphValue<60) {
		
		maximumGraphValue=60;
		
		int newvalue=60/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	
	else if (maximumGraphValue>60 && maximumGraphValue<90) {
		
		maximumGraphValue=100;
		
		int newvalue=100/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	
	else if (maximumGraphValue>90 && maximumGraphValue<110) {
		
		maximumGraphValue=120;
		
		int newvalue=120/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	else if (maximumGraphValue>110 && maximumGraphValue<200) {
		
		maximumGraphValue=200;
		
		int newvalue=200/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	
	
	
	else if (maximumGraphValue>200 && maximumGraphValue<500) {
		
		maximumGraphValue=400;
		
		int newvalue=400/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	else if (maximumGraphValue>500 && maximumGraphValue<1000) {
		
		maximumGraphValue=1000;
		
		int newvalue=1000/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	else if (maximumGraphValue>1000 && maximumGraphValue<1500) {
		
		maximumGraphValue=1600;
		
		int newvalue=1600/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	
	else if (maximumGraphValue>1500 && maximumGraphValue<2000) {
		
		maximumGraphValue=2000;
		
		int newvalue=2000/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	
	else if (maximumGraphValue>2000 && maximumGraphValue<4000) {
		
		maximumGraphValue=4000;
		
		int newvalue=4000/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	
	else if (maximumGraphValue>4000 && maximumGraphValue<6000) {
		
		maximumGraphValue=6000;
		
		int newvalue=6000/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	else if (maximumGraphValue>6000 && maximumGraphValue<10000) {
		
		maximumGraphValue=10000;
		
		int newvalue=10000/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
	}
	
	
	
	
	else  {
		maximumGraphValue=30;
		
		int newvalue=maximumGraphValue/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		l2.text=[NSString stringWithFormat:@"$%d",newvalue];
		l3.text=[NSString stringWithFormat:@"$%d",newvalue1];
		l4.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		l5.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
	}
	
	
	
	
	
	
	
	
	
	
	
	float h3=(appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee*number)*100/maximumGraphValue;
	
	
	
	
    NSLog(@"height3 New Workign is %f",h3);
	
	int h3new=h3*1.2;
	int height3=(int)roundf(h3new);
	
	
	NSLog(@"height3 New Workign is %d",height3);
	
	graphViewOne=[[UIView alloc] initWithFrame:CGRectMake(370,390,100,-height3)];
	graphViewOne.backgroundColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];

	[self.view addSubview:graphViewOne];
	
	
		
	
	
	
	float test=appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee*number;
	
	
	TextLabelAValue= [[UILabel alloc] initWithFrame:CGRectMake(345,390,100,24)];
    TextLabelAValue.backgroundColor = [UIColor clearColor];
	TextLabelAValue.textAlignment=UITextAlignmentRight;
	TextLabelAValue.text =[NSString stringWithFormat:@"%.2f",test];
	TextLabelAValue.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];
	[self.view addSubview:TextLabelAValue];
	
	
	
	float h4=(appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee*number)*100/maximumGraphValue;
	
    NSLog(@"height3 New Workign is %f",h3);
	
	//int h4new=h3*1.6;
	
	int h4new=h4*1.2;
	
	int height4=(int)roundf(h4new);
	
	
	NSLog(@"height3 New Workign is %d",height4);
	
	graphViewTwo=[[UIView alloc] initWithFrame:CGRectMake(600,390,100,-height4)];
	
	//graphViewTwo.backgroundColor=[UIColor blueColor];
	
	graphViewTwo.backgroundColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];

	
	[self.view addSubview:graphViewTwo];
	
	
	float testb=appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee*number;
	
	
	
	TextLabelBValue= [[UILabel alloc] initWithFrame:CGRectMake(555,390,100,24)];
    TextLabelBValue.backgroundColor = [UIColor clearColor];
	TextLabelBValue.textAlignment=UITextAlignmentRight;
	TextLabelBValue.text =[NSString stringWithFormat:@"%.2f",testb];
	TextLabelBValue.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];
	[self.view addSubview:TextLabelBValue];
	
	
	
	
	
	firstView.alpha=0;
	secondView.alpha=0;
	thirdView.alpha=0;
	fourView.alpha=0;
	fiveView.alpha=0;
	SixView.alpha=0;
	SevenView.alpha=0;
	EightView.alpha=0;
	NineView.alpha=0;
	TenView.alpha=0;
	ElevenView.alpha=0;
	TwelveView.alpha=0;
	ThirteenView.alpha=0;
	FourteenView.alpha=0;
	FifteenView.alpha=0;
	
	
		
	
	firstView.hidden=TRUE;
	secondView.hidden=TRUE;
	thirdView.hidden=TRUE;
	fourView.hidden=TRUE;
	fiveView.hidden=TRUE;
	SixView.hidden=TRUE;
	SevenView.hidden=TRUE;
	EightView.hidden=TRUE;
	NineView.hidden=TRUE;
	TenView.hidden=TRUE;
	ElevenView.hidden=TRUE;
	TwelveView.hidden=TRUE ;
	ThirteenView.hidden=TRUE;
	FourteenView.hidden=TRUE;
	FifteenView.hidden=TRUE;
	
	
		
	
	
	
	
	
	
	

}


-(IBAction)economicDataButtonAction{
	
	
	EconomicDataViewController*targetContrlloer=[[EconomicDataViewController alloc] init];
	[self.navigationController pushViewController:targetContrlloer animated:YES];
	
	
	
}

-(IBAction)riskButtonAction{
	
	RiskViewController*targetContrlloer=[[RiskViewController alloc] init];
	[self.navigationController pushViewController:targetContrlloer animated:YES];
	
	
	
}

-(IBAction)financialImpactButtonAction{
	/*
	FinancialImpactViewController*targetContrlloer=[[FinancialImpactViewController alloc] init];
	[self.navigationController pushViewController:targetContrlloer animated:YES];
	
	*/
	
	
}

-(IBAction)probabilitiesButtonAction{
	
	
	ProbabilitiesViewController*targetContrlloer=[[ProbabilitiesViewController alloc] init];
	[self.navigationController pushViewController:targetContrlloer animated:YES];
	
	
	
	
}


-(IBAction)homeButtonAction{

	MainViewController*targetContrlloer=[[MainViewController alloc] init];
	[self.navigationController pushViewController:targetContrlloer animated:YES];
	
	
}


// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {

	appDelegate=[[UIApplication sharedApplication]delegate];

	flag=1;
	
	
	TextLabelAValue.alpha=0;
	TextLabelBValue.alpha=0;
	
	
	
	
	
	subView.backgroundColor=[UIColor clearColor];
	popBgOne=[[UIImageView alloc] initWithFrame:CGRectMake(0,0,1024,768)];
	UIImage*image=[UIImage imageNamed:@"bgPopupback.png"];
	popBgOne.image=image;
	[self.view addSubview:popBgOne]	;	  
	popUpOne=[[UIImageView alloc] initWithFrame:CGRectMake(105,80,824,411)];
	UIImage*image1=[UIImage imageNamed:@"popup3NewU.png"];
	popUpOne.image=image1;
	[self.view addSubview:popUpOne]	;	  
	
    closeButton = [[UIButton buttonWithType:UIButtonTypeCustom] retain];
    closeButton.frame = CGRectMake(890,91,25,25);
	//UIImage*closeImage1=[UIImage imageNamed:@"close.png"];

    [closeButton setImage:[UIImage imageNamed:@"close.png"] forState:UIControlStateNormal];
    [closeButton addTarget:self action:@selector(closeButtonAction) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:closeButton];
	
	
	
	line1=[[UIImageView alloc] initWithFrame:CGRectMake(250,390,530,2)];
	UIImage*imageline1=[UIImage imageNamed:@"single_line.png"];
	line1.image=imageline1;
	[self.view addSubview:line1];
	
	
	l1 = [[UILabel alloc] initWithFrame:CGRectMake(140,381,100,20)];
    l1.backgroundColor = [UIColor clearColor];
    l1.textAlignment=UITextAlignmentRight;
	l1.text =@"$0";
	
	l1.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];

	
	
	
	[self.view addSubview:l1];
	
	
	
	TextLabel= [[UILabel alloc] initWithFrame:CGRectMake(220,221,140,24)];
    TextLabel.backgroundColor = [UIColor clearColor];
	TextLabel.textAlignment=UITextAlignmentRight;
	TextLabel.text =@"Benefit per horse";
	TextLabel.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];
	[self.view addSubview:TextLabel];
	
	
	
	TextLabelA= [[UILabel alloc] initWithFrame:CGRectMake(330,410,210,24)];
    TextLabelA.backgroundColor = [UIColor clearColor];
	TextLabelA.textAlignment=UITextAlignmentRight;
	TextLabelA.text =@"Annually vaccinated horse";
	TextLabelA.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];
	[self.view addSubview:TextLabelA];
	
	TextLabelS= [[UILabel alloc] initWithFrame:CGRectMake(565,410,245,24)];
    TextLabelS.backgroundColor = [UIColor clearColor];
	TextLabelS.textAlignment=UITextAlignmentRight;
	TextLabelS.text =@"Semi-annually vaccinated horse";
	TextLabelS.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];
	[self.view addSubview:TextLabelS];
	
	
	
	
	
		
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	line2=[[UIImageView alloc] initWithFrame:CGRectMake(250,360,530,2)];
	UIImage*imageline2=[UIImage imageNamed:@"single_line.png"];
	line2.image=imageline2;
	[self.view addSubview:line2];	  
	
	l2 = [[UILabel alloc] initWithFrame:CGRectMake(140,347,100,24)];
    l2.backgroundColor = [UIColor clearColor];
	l2.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];

    l2.textAlignment=UITextAlignmentRight;
	l2.text =@"$2";
	[self.view addSubview:l2];
	
	
	
	
	
	
	
	
	line3=[[UIImageView alloc] initWithFrame:CGRectMake(250,330,530,2)];
	UIImage*imageline3=[UIImage imageNamed:@"single_line.png"];
	line3.image=imageline3;
	[self.view addSubview:line3];	  
	
	
	l3 = [[UILabel alloc] initWithFrame:CGRectMake(140,319,100,24)];
    l3.backgroundColor = [UIColor clearColor];
    l3.textAlignment=UITextAlignmentRight;
	l3.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];

	l3.text =@"$4";
	[self.view addSubview:l3];
	
	
	
	
	
	
	
	
	
	
	
	line4=[[UIImageView alloc] initWithFrame:CGRectMake(250,300,530,2)];
	UIImage*imageline4=[UIImage imageNamed:@"single_line.png"];
	line4.image=imageline4;
	[self.view addSubview:line4];	  
	

	
	l4 = [[UILabel alloc] initWithFrame:CGRectMake(140,288,100,24)];
    l4.backgroundColor = [UIColor clearColor];
    l4.textAlignment=UITextAlignmentRight;
	l4.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];

	l4.text =@"$6";
	[self.view addSubview:l4];
	
	
	
	
	
	
	
	
	
	
	
	line5=[[UIImageView alloc] initWithFrame:CGRectMake(250,270,530,2)];
	UIImage*imageline5=[UIImage imageNamed:@"single_line.png"];
	line5.image=imageline5;
	[self.view addSubview:line5];	  
	
	
	l5 = [[UILabel alloc] initWithFrame:CGRectMake(140,258,100,24)];
    l5.backgroundColor = [UIColor clearColor];
    l5.textAlignment=UITextAlignmentRight;
	l5.text =@"$8";
	l5.textColor=[UIColor colorWithRed:(33/255.f) green:(123/255.f) blue:(189/255.f) alpha:1];

	[self.view addSubview:l5];
	
	
	
	
	
	
	
	
	
	TextLabelAValue.hidden=YES;
	TextLabelBValue.hidden=YES;

	
	subView.hidden=YES;
	popBgOne.hidden=YES;
	popUpOne.hidden=YES;
	closeButton.hidden=YES;
	
	line1.hidden=YES;
	line2.hidden=YES;
	line3.hidden=YES;
	line4.hidden=YES;
	line5.hidden=YES;
	
	
	l1.hidden=YES;
	l2.hidden=YES;
	l3.hidden=YES;
	l4.hidden=YES;
	l5.hidden=YES;
	
	TextLabel.hidden=YES;
	TextLabelS.hidden=YES;
	TextLabelA.hidden=YES;

	
	
	tblSimpleTable.hidden=YES;
	tableImageView.hidden=YES;
	tblSimpleTable.backgroundColor=[UIColor clearColor];
	title=@"Yes, same vaccination strategy on entire premise";
	titleLabel.text=@"Yes, same vaccination strategy on entire premise";
	testLabel.transform = CGAffineTransformMakeRotation(M_PI_2*3); // 90 degress
	
	
	myArray = [[NSArray alloc] initWithObjects:@"Yes, same vaccination strategy on entire premise",@"No, mixed population (vaccinated and unvaccinated)",nil];
	
	
	//appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee=appDelegate.Cost_1_Vaccine_Dose;
	
	//appDelegate.Same_Vaccination_Cost_Vaccination_Annually_With_Guarantee=appDelegate.Cost_1_Vaccine_Dose;
	
	NSLog(@"Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee %.2f",appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee);
	
	
	appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_No_Guarantee=appDelegate.Cost_1_Vaccine_Dose*2;
	
	
	NSLog(@"Same_Vaccination_Cost_Vaccination_SemiAnnually_No_Guarantee %.2f",appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_No_Guarantee);

	
	// prevoious working appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_With_Guarantee=appDelegate.Cost_1_Vaccine_Dose*2;
	
	
	appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_With_Guarantee=appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_No_Guarantee;
	
	
	
	
	NSLog(@"Same_Vaccination_Cost_Vaccination_SemiAnnually_With_Guarantee %.2f",appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_With_Guarantee);

	
	
	appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated=	((appDelegate.Cost_1_Day_Off_Training * appDelegate.Days_Off_Training_Unvaccinated_SevereEI*appDelegate.Same_Vaccination_SevereEI_Unvaccinated)
	+ (appDelegate.Cost_1_Day_Off_Training *appDelegate.Days_Off_Training_Unvaccinated_ModerateEI*appDelegate.Same_Vaccination_ModerateEI_Unvaccinated)
	+ (appDelegate.Cost_1_Day_Off_Training *appDelegate.Days_Off_Training_Unvaccinated_MildEI*appDelegate.Same_Vaccination_MildEI_Unvaccinated))/100;
	
	
	
	
	NSLog(@"Same_Vaccination_Cost_DaysOffTraining_Unvaccinated %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated);

	///my comment appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_MildEI*appDelegate.Same_Vaccination_ModerateEI_Annually)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_ModerateEI*appDelegate.Same_Vaccination_MildEI_Annually))/100;
	
	
	
	//new comment appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_MildEI*appDelegate.Same_Vaccination_MildEI_Annually)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_ModerateEI*appDelegate.Same_Vaccination_ModerateEI_Annually))/100;
	

	
	appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee=((appDelegate.Cost_1_Day_Off_Training * ((appDelegate.Days_Off_Training_Vaccinated_SevereEI *appDelegate.Same_Vaccination_SevereEI_Annually) + (appDelegate.Days_Off_Training_Vaccinated_ModerateEI * appDelegate.Same_Vaccination_ModerateEI_Annually) + (appDelegate.Days_Off_Training_Vaccinated_MildEI * appDelegate.Same_Vaccination_MildEI_Annually))) * appDelegate.Same_Vaccination_Horses_Per_Premise)/100;
	
	
	
	

	
	NSLog(@"Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee);

	//new comment appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_MildEI*appDelegate.Same_Vaccination_MildEI_Annually)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_ModerateEI*appDelegate.Same_Vaccination_ModerateEI_Annually))/100;
	
	appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee=appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee;
	NSLog(@"Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee);

	
	// new comment appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_No_Guarantee=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_MildEI*appDelegate.Same_Vaccination_MildEI_SemiAnnually)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_ModerateEI*appDelegate.Same_Vaccination_ModerateEI_SemiAnnually))/100;
	appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_No_Guarantee=((appDelegate.Cost_1_Day_Off_Training * ((appDelegate.Days_Off_Training_Vaccinated_SevereEI * appDelegate.Same_Vaccination_SevereEI_SemiAnnually) + (appDelegate.Days_Off_Training_Vaccinated_ModerateEI * appDelegate.Same_Vaccination_ModerateEI_SemiAnnually) + (appDelegate.Days_Off_Training_Vaccinated_MildEI * appDelegate.Same_Vaccination_MildEI_SemiAnnually))) * appDelegate.Same_Vaccination_Horses_Per_Premise)/100;
	
	

	
	
	NSLog(@"Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_No_Guarantee %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_No_Guarantee);
	
	
	//new comment appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_With_Guarantee=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_MildEI*appDelegate.Same_Vaccination_MildEI_SemiAnnually)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_ModerateEI*appDelegate.Same_Vaccination_ModerateEI_SemiAnnually))/100;

	
	
	appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_With_Guarantee=appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_No_Guarantee;
	
	
	NSLog(@"My Data Working is %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_With_Guarantee);

	
	
	
	NSLog(@"Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_With_Guarantee %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_With_Guarantee);

	
	
	
	appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated=((appDelegate.Cost_Treatment_SevereEI*appDelegate.Same_Vaccination_SevereEI_Unvaccinated)+(appDelegate.Cost_Treatment_ModerateEI*appDelegate.Same_Vaccination_ModerateEI_Unvaccinated)+(appDelegate.Cost_Treatment_MildEI*appDelegate.Same_Vaccination_MildEI_Unvaccinated))/100;
	NSLog(@"Same_Vaccination_Cost_Treatment_Unvaccinated %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated);

   
	
	

	
	
	float one=appDelegate.Cost_Treatment_ModerateEI;
	
	

	NSLog(@"One is %.2f",one);
	
	float two=appDelegate.Same_Vaccination_ModerateEI_Annually;
	
	
	NSLog(@"two is %.2f",two);
	float three=appDelegate.Cost_Treatment_MildEI;
	
	NSLog(@"Three is %.2f",three);
	
	float four=appDelegate.Same_Vaccination_MildEI_Annually;;

	NSLog(@"Four is %.2f",four);

	appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee=0;
	
	

		
	
	
	
	
	//my comments appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee=(appDelegate.Cost_Treatment_ModerateEI*appDelegate.Same_Vaccination_MildEI_Annually)/100;
	

	// new comment appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee=((appDelegate.Cost_Treatment_ModerateEI*appDelegate.Same_Vaccination_ModerateEI_Annually)+(appDelegate.Cost_Treatment_MildEI*appDelegate.Same_Vaccination_MildEI_Annually))/100;
	

	appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee=(((appDelegate.Cost_Treatment_SevereEI * appDelegate.Same_Vaccination_SevereEI_Annually) + (appDelegate.Cost_Treatment_ModerateEI * appDelegate.Same_Vaccination_ModerateEI_Annually) + (appDelegate.Cost_Treatment_MildEI * appDelegate.Same_Vaccination_MildEI_Annually)) * appDelegate.Same_Vaccination_Horses_Per_Premise)/100;
	

	

	NSLog(@"Same_Vaccination_ModerateEI_Annually %.2f",appDelegate.Same_Vaccination_ModerateEI_Annually);
		
	
	
	 
	
	
	NSLog(@"Same_Vaccination_Cost_Treatment_Annually_No_Guarantee is %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee);


	// new comment appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee=(appDelegate.Cost_Treatment_ModerateEI*appDelegate.Same_Vaccination_ModerateEI_SemiAnnually)/100;
	
	
	appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee=(((appDelegate.Cost_Treatment_SevereEI * appDelegate.Same_Vaccination_SevereEI_SemiAnnually) + (appDelegate.Cost_Treatment_ModerateEI * appDelegate.Same_Vaccination_ModerateEI_SemiAnnually) + (appDelegate.Cost_Treatment_MildEI * appDelegate.Same_Vaccination_MildEI_SemiAnnually)) * appDelegate.Same_Vaccination_Horses_Per_Premise)/100;
	
	


	
	NSLog(@"Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee is %.2f",appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee);

	
	
	
	appDelegate.Mixed_Population_Cost_DaysOffTraining_Unvaccinated=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Unvaccinated_SevereEI*appDelegate.Mixed_Population_SevereEI_Unvaccinated)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Unvaccinated_MildEI*appDelegate.Mixed_Population_ModerateEI_Unvaccinated)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Unvaccinated_MildEI*appDelegate.Mixed_Population_MildEI_Unvaccinated))/100;
	
	
	NSLog(@"Mixed_Population_Cost_DaysOffTraining_Unvaccinated is %.2f",appDelegate.Mixed_Population_Cost_DaysOffTraining_Unvaccinated);

	// new comment appDelegate.Mixed_Population_Cost_DaysOffTraining_Annually_No_Guarantee=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_MildEI*appDelegate.Mixed_Population_ModerateEI_Annually)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_ModerateEI*appDelegate.Mixed_Population_MildEI_Annually))/100;

	
	appDelegate.Mixed_Population_Cost_DaysOffTraining_Annually_No_Guarantee=((appDelegate.Cost_1_Day_Off_Training * ((appDelegate.Days_Off_Training_Vaccinated_SevereEI * appDelegate.Mixed_Population_SevereEI_Annually) + (appDelegate.Days_Off_Training_Vaccinated_ModerateEI * appDelegate.Mixed_Population_ModerateEI_Annually) + (appDelegate.Days_Off_Training_Vaccinated_MildEI * appDelegate.Mixed_Population_MildEI_Annually))) * appDelegate.Same_Vaccination_Horses_Per_Premise)/100;
	
	
	
	
	
	//appDelegate.Mixed_Population_Cost_DaysOffTraining_Annually_With_Guarantee=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_MildEI*appDelegate.Mixed_Population_ModerateEI_Annually)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_ModerateEI*appDelegate.Mixed_Population_MildEI_Annually))/100;
	
	appDelegate.Mixed_Population_Cost_DaysOffTraining_Annually_With_Guarantee=appDelegate.Mixed_Population_Cost_DaysOffTraining_Annually_No_Guarantee;
	
	
	
	NSLog(@"Mixed_Population_Cost_DaysOffTraining_Annually_With_Guarantee is %.2f",appDelegate.Mixed_Population_Cost_DaysOffTraining_Annually_With_Guarantee);

	
	
	// new appDelegate.Mixed_Population_Cost_DaysOffTraining_SemiAnnually_No_Guarantee=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_MildEI*appDelegate.Mixed_Population_ModerateEI_SemiAnnually)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_ModerateEI*appDelegate.Mixed_Population_MildEI_SemiAnnually))/100;
	
	appDelegate.Mixed_Population_Cost_DaysOffTraining_SemiAnnually_No_Guarantee=((appDelegate.Cost_1_Day_Off_Training * ((appDelegate.Days_Off_Training_Vaccinated_SevereEI * appDelegate.Mixed_Population_SevereEI_SemiAnnually) + (appDelegate.Days_Off_Training_Vaccinated_ModerateEI * appDelegate.Mixed_Population_ModerateEI_SemiAnnually) + (appDelegate.Days_Off_Training_Vaccinated_MildEI * appDelegate.Mixed_Population_MildEI_SemiAnnually))) * appDelegate.Same_Vaccination_Horses_Per_Premise)/100;
	
	NSLog(@"Mixed_Population_Cost_DaysOffTraining_SemiAnnually_No_Guarantee is %.2f",appDelegate.Mixed_Population_Cost_DaysOffTraining_SemiAnnually_No_Guarantee);

	
	// new comment appDelegate.Mixed_Population_Cost_DaysOffTraining_SemiAnnually_With_Guarantee=((appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_MildEI*appDelegate.Mixed_Population_ModerateEI_SemiAnnually)+(appDelegate.Cost_1_Day_Off_Training*appDelegate.Days_Off_Training_Vaccinated_ModerateEI*appDelegate.Mixed_Population_MildEI_SemiAnnually))/100;
	
	appDelegate.Mixed_Population_Cost_DaysOffTraining_SemiAnnually_With_Guarantee=appDelegate.Mixed_Population_Cost_DaysOffTraining_SemiAnnually_No_Guarantee;
	
	NSLog(@"Mixed_Population_Cost_DaysOffTraining_SemiAnnually_With_Guarantee is %.2f",appDelegate.Mixed_Population_Cost_DaysOffTraining_SemiAnnually_With_Guarantee);

	appDelegate.Mixed_Population_Cost_Treatment_Unvaccinated=((appDelegate.Cost_Treatment_SevereEI*appDelegate.Mixed_Population_SevereEI_Unvaccinated)+(appDelegate.Cost_Treatment_ModerateEI*appDelegate.Mixed_Population_ModerateEI_Unvaccinated)+(appDelegate.Cost_Treatment_MildEI*appDelegate.Mixed_Population_MildEI_Unvaccinated))/100;
	
	NSLog(@"Mixed_Population_Cost_Treatment_Unvaccinated is %.2f",appDelegate.Mixed_Population_Cost_Treatment_Unvaccinated);

	//appDelegate.Mixed_Population_Cost_Treatment_Annually_No_Guarantee=((appDelegate.Cost_Treatment_ModerateEI*appDelegate.Mixed_Population_MildEI_Annually)+(appDelegate.Cost_Treatment_MildEI*appDelegate.Mixed_Population_MildEI_Annually))/100;
	
	
	
	// this is the new comment to check appDelegate.Mixed_Population_Cost_Treatment_Annually_No_Guarantee=((appDelegate.Cost_Treatment_ModerateEI*appDelegate.Mixed_Population_MildEI_Annually)+(appDelegate.Cost_Treatment_MildEI*appDelegate.Mixed_Population_MildEI_Annually))/100;
	
	// new comment appDelegate.Mixed_Population_Cost_Treatment_Annually_No_Guarantee=((appDelegate.Cost_Treatment_ModerateEI*appDelegate.Mixed_Population_ModerateEI_Annually)+(appDelegate.Cost_Treatment_MildEI*appDelegate.Mixed_Population_MildEI_Annually))/100;
	
	
	appDelegate.Mixed_Population_Cost_Treatment_Annually_No_Guarantee=(((appDelegate.Cost_Treatment_SevereEI *appDelegate.Mixed_Population_SevereEI_Annually) + (appDelegate.Cost_Treatment_ModerateEI *appDelegate.Mixed_Population_ModerateEI_Annually) + (appDelegate.Cost_Treatment_MildEI * appDelegate.Mixed_Population_MildEI_Annually)) * appDelegate.Same_Vaccination_Horses_Per_Premise)/100;
	

	
	NSLog(@"Mixed_Population_Cost_Treatment_Annually_No_Guarantee is %.2f",appDelegate.Mixed_Population_Cost_Treatment_Annually_No_Guarantee);


	costOfVaccinationUVHL.text=[NSString stringWithFormat:@"$%.2f", appDelegate.Same_Vaccination_Cost_Vaccination_Unvaccinated];
	costOfDaysOfTrainginUVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated];
	costofTreatmentUVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated];	
	costOfVaccinationAVHL.text=[NSString stringWithFormat:@"$%.2f", appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee];
	costOfDaysOfTrainginAVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee];
	costofTreatmentAVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee];
	NSLog(@"Same_Vaccination_Cost_Treatment_Annually_No_Guarantee is %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee);

	
	
	
	costOfVaccinationAWGVHL.text=[NSString stringWithFormat:@"%.2f", appDelegate.Same_Vaccination_Cost_Vaccination_Annually_With_Guarantee];
	costOfDaysOfTrainginAWGVHL.text=[NSString stringWithFormat:@"%.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee];
	
	
	costOfVaccinationSAVHL.text=[NSString stringWithFormat:@"$%.2f", appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_No_Guarantee];
	costOfDaysOfTrainginSAVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_No_Guarantee];
	costofTreatmentSAVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee];

	
	costOfVaccinationSAWGVHL.text=[NSString stringWithFormat:@"$%.2f", appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_With_Guarantee];
	costOfDaysOfTrainginSAWGVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_With_Guarantee];
	costofTreatmentSAWGVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_With_Guarantee];
	
	
	
	
	
	float firsttotal=appDelegate.Same_Vaccination_Cost_Vaccination_Unvaccinated+appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated+appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated;
	float secondTotal= appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee+appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee+appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee;
	float thirdTotal= appDelegate.Same_Vaccination_Cost_Vaccination_Annually_With_Guarantee+appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee+appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee;
	
	  V1=secondTotal-thirdTotal;
	
	
	
	  unvaccinatedTotal.text=[NSString stringWithFormat:@"$%.2f",firsttotal];
	  AnnvaccinatedTotal.text=[NSString stringWithFormat:@"$%.2f",secondTotal];
	  AnnvaccinatedTotalWG.text=[NSString stringWithFormat:@"$%.2f",thirdTotal];;
	
	
	 appDelegate.itemOneValue=firsttotal;
	 appDelegate.itemTwoValue=secondTotal;
	 appDelegate.itemThreeValue=thirdTotal;
	
	 float fourtotal=appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_No_Guarantee+appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_No_Guarantee+appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee;

	
	 SAnnvaccinatedTotal.text=[NSString stringWithFormat:@"$%.2f",fourtotal];

	
	 appDelegate.itemFourValue=fourtotal;
	
	
	
	
	 float five=appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_With_Guarantee+appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_With_Guarantee+appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_With_Guarantee;

	 appDelegate.itemFiveValue=five;

	[numberOfHorsesTextField setKeyboardType:UIKeyboardTypeNumberPad];

	 SAnnvaccinatedTotalWG.text=[NSString stringWithFormat:@"$%.2f",five];

	 [numberOfHorsesTextField addTarget:self action:@selector(textFieldTextDidChange:) forControlEvents:UIControlEventEditingChanged];


	V2=five-fourtotal;
	
	
	numberOfHorsesTextField.text=@"1";
	
	number=1;
	
	appDelegate.Mixed_Population_Cost_Vaccination_SemiAnnually_No_Guarantee=appDelegate.Cost_1_Vaccine_Dose*2;

	
	
	NSLog(@"My Testing Values is %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee);
		
		
	
	
	costofTreatmentAWGVHL.text=[NSString stringWithFormat:@"%.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee];

	
	
	
	
	float firsttotaltest=appDelegate.Same_Vaccination_Cost_Vaccination_Unvaccinated+appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated+appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated;
	
	NSLog(@"firsttotal Percentage is %.2f",firsttotaltest);
	
	
	/*************************************************************************************************/
	
	/*************************************************************************************************/
	
	
	maximumValue=firsttotal;
	//int maximumValue2=secondTotal;
	
	
	NSLog(@"Maximum Value is %d",maximumValue);
	
	
	
	
		
	
	
	if (maximumValue>500 && maximumValue<1000) {
		
		
		maximumValue=1000;
		
		int newvalue=1000/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
		labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
		labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
		labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
}
	
	
  else if (maximumValue>1000 && maximumValue<2000) {
		
		
		maximumValue=2000;
		
		
		int newvalue=2000/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
		labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
		labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
		
		labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
		
		
	}
	
	
	
     else if (maximumValue>2000 && maximumValue<3000) {
	  
	  
	  maximumValue=3000;
	  
	  
	  int newvalue=3000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
	
  else if (maximumValue>3000 && maximumValue<5000) {
	  
	  
	  maximumValue=5000;
	  
	  
	  int newvalue=5000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
	
  else if (maximumValue>5000 && maximumValue<10000) {
	  
	  
	  maximumValue=10000;
	  
	  
	  int newvalue=10000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
	
	
  else if (maximumValue>10000 && maximumValue<15000) {
	  
	  
	  maximumValue=15000;
	  
	  
	  int newvalue=15000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
	
	
  else if (maximumValue>15000 && maximumValue<20000) {
	  
	  
	  maximumValue=20000;
	  
	  
	  int newvalue=20000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
	
	
  else if (maximumValue>20000 && maximumValue<30000) {
	  
	  
	  maximumValue=30000;
	  
	  
	  int newvalue=30000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
  else if (maximumValue>30000 && maximumValue<50000) {
	  
	  
	  maximumValue=50000;
	  
	  
	  int newvalue=50000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
  else if (maximumValue>50000 && maximumValue<70000) {
	  
	  
	  maximumValue=70000;
	  
	  
	  int newvalue=70000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
	
  else if (maximumValue>70000 && maximumValue<90000) {
	  
	  
	  maximumValue=90000;
	  
	  
	  int newvalue=90000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
  else if (maximumValue>90000 && maximumValue<120000) {
	  
	  
	  maximumValue=120000;
	  
	  
	  int newvalue=120000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
	
	
  else if (maximumValue>120000 && maximumValue<150000) {
	  
	  
	  maximumValue=150000;
	  
	  
	  int newvalue=150000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
	
  else if (maximumValue>150000 && maximumValue<200000) {
	  
	  
	  maximumValue=200000;
	  
	  
	  int newvalue=200000/4;
	  
	  int newvalue1=newvalue+newvalue;
	  
	  int newvalue2=newvalue+newvalue1;
	  
	  int newvalue3=newvalue+newvalue2;
	  
	  
	  labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
	  labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
	  labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
	  
	  labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
	  
	  
	  
	  
  }
	
	
	else {
		
		
		
		maximumValue=500;
		
		int newvalue=500/4;
		
		int newvalue1=newvalue+newvalue;
		
		int newvalue2=newvalue+newvalue1;
		
		int newvalue3=newvalue+newvalue2;
		
		
		labelOne.text=[NSString stringWithFormat:@"$%d",newvalue];
		labelTwo.text=[NSString stringWithFormat:@"$%d",newvalue1];
		labelThree.text=[NSString stringWithFormat:@"$%d",newvalue2];
		labelFour.text=[NSString stringWithFormat:@"$%d",newvalue3];
		
		
	}

	
	
	
	
	/***********************************/
	
	float h3=(appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated*100)/maximumValue;
	
	
	
    int h3new=h3*1.6;
	
	int height3=(int)roundf(h3new);
	
    valueOne=(int)roundf(appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated);
	
	
	  
	
 	////thirdView=[[UIView alloc] initWithFrame:CGRectMake(190,360,100,-height3)];
	thirdView=[[UIView alloc] initWithFrame:CGRectMake(285,300,50,-height3)];

	thirdView.backgroundColor=[UIColor colorWithRed:(102/255.f) green:(107/255.f) blue:(40/255.f) alpha:1];
	
	
	
	
	[self.view addSubview:thirdView];
	
    
	
	
	
	
	
	
	
	/***********************************************************/
	
	
	NSLog(@"View Six Value is %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee);
	float h6=(appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee*100)/maximumValue;
	
	
	int h6new=h6*1.6;
	
	int height6=(int)roundf(h6new);
	
	NSLog(@"View Six Value h6 is  %.2f",h6);
	
	
	SixView=[[UIView alloc] initWithFrame:CGRectMake(440,300,50,-height6)];
	
	
	
	SixView.backgroundColor=[UIColor colorWithRed:(102/255.f) green:(107/255.f) blue:(40/255.f) alpha:1];
	
	
	
	
	[self.view addSubview:SixView];
	
	
	
	
	
	/****************************************************/
	
	
	
	
	
	
	NSLog(@"View Six Value is %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee);
	float h9=(appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee*100)/maximumValue;
	
	
	int h9new=h9*1.6;
	
	
	int height9=(int)roundf(h9new);
	
	NSLog(@"View Six Value h9 is  %.2f",h9);
	
	
	NineView=[[UIView alloc] initWithFrame:CGRectMake(570,300,50,-height9)];
	
	
	
	NineView.backgroundColor=[UIColor colorWithRed:(102/255.f) green:(107/255.f) blue:(40/255.f) alpha:1];
	
	
	
	
	[self.view addSubview:NineView];

	
	
	/****************************************************************************/
	
	
	
	
	NSLog(@"View Six Value is %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee);
	float h12=(appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_No_Guarantee*100)/maximumValue;
	
	
	int h12new=h12*1.6;
	
	int height12=(int)roundf(h12new);
	
	NSLog(@"View Six height12  is  %.2f",h12);
	
	
	TwelveView=[[UIView alloc] initWithFrame:CGRectMake(720,300,50,-height12)];
	
	
	
	TwelveView.backgroundColor=[UIColor colorWithRed:(102/255.f) green:(107/255.f) blue:(40/255.f) alpha:1];
	
	
	
	
	[self.view addSubview:TwelveView];
	
	/********************************************************/
	
	
	
	float h15=(appDelegate.Same_Vaccination_Cost_Treatment_SemiAnnually_With_Guarantee*100)/maximumValue;
	
	int h15new=h15*1.6;
	
	
	int height15=(int)roundf(h15new);
	
	NSLog(@"View Six height15  is  %.2f",h15);
	
	
	FifteenView=[[UIView alloc] initWithFrame:CGRectMake(850,300,50,-height15)];
	
	FifteenView.backgroundColor=[UIColor colorWithRed:(102/255.f) green:(107/255.f) blue:(40/255.f) alpha:1];
	
	
	
	
	[self.view addSubview:FifteenView];
	
	/******************************************************/
	int yvalue2=300-height3;
	//int height2=(int)roundf(appDelegate.Same_Vaccination_ModerateEI_Unvaccinated);
	
	
	float h2=(appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated*100)/maximumValue;
	
	
	valueTwo=(int)roundf(appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated);

	
	
	NSLog(@"Second H2 is %f.2f",h2);
	
	
	
	int h2new=h2*1.6;
	int height2=(int)roundf(h2new);
	
	secondView=[[UIView alloc] initWithFrame:CGRectMake(285,yvalue2,50,-height2)];
	
    
	
	secondView.backgroundColor=[UIColor colorWithRed:(184/255.f) green:(188/255.f) blue:(103/255.f) alpha:1];
	[self.view addSubview:secondView];
	
	
	/**********************************************************/
	
	
	
	
	int yvalue5=300-height6;
	
	
	float h5=(appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee*100)/maximumValue;
	
	
	NSLog(@"Second H5 is %f.2f",h5);
	
	
	int h5new=h5*1.6;
	
	int height5=(int)roundf(h5new);
	
	
	//int height2=40;
	
	
	fiveView=[[UIView alloc] initWithFrame:CGRectMake(440,yvalue5,50,-height5)];
	
	
	fiveView.backgroundColor=[UIColor colorWithRed:(184/255.f) green:(188/255.f) blue:(103/255.f) alpha:1];
	
	
	
	[self.view addSubview:fiveView];
	
	
	
	
	
	
	/***********************************************************/
	
	
	
	int yvalue8=300-height9;
	
	
	float h8=(appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee*100)/maximumValue;
	
	
	NSLog(@"Second H8 is %f.2f",h8);
	
	
	int h8new=h8*1.6;
	
	
	int height8=(int)roundf(h8new);
	
	
	//int height2=40;
	
	
	EightView=[[UIView alloc] initWithFrame:CGRectMake(570,yvalue8,50,-height8)];
	
	
	EightView.backgroundColor=[UIColor colorWithRed:(184/255.f) green:(188/255.f) blue:(103/255.f) alpha:1];
	
	
	
	[self.view addSubview:EightView];
	
	
	/*****************************************************************/
	
	
	
	
	int yvalue11=300-height12;
	
	
	float h11=(appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_No_Guarantee*100)/maximumValue;
	
	
	NSLog(@"Second h11 is %f.2f",h11);
	
	int h11new=h11*1.6;
	
	
	
	int height11=(int)roundf(h11new);
	
	
	
	
	ElevenView=[[UIView alloc] initWithFrame:CGRectMake(720,yvalue11,50,-height11)];
	
	
	ElevenView.backgroundColor=[UIColor colorWithRed:(184/255.f) green:(188/255.f) blue:(103/255.f) alpha:1];
	
	
	
	[self.view addSubview:ElevenView];
	
	/*************************************************************/
	
	
	
	
	int yvalue14=300-height15;
	
	
	float h14=(appDelegate.Same_Vaccination_Cost_DaysOffTraining_SemiAnnually_With_Guarantee*100)/maximumValue;
	
	
	NSLog(@"Second h14 is %f.2f",h14);
	
	int h14new=h14*1.6;
	
	
	
	int height14=(int)roundf(h14new);
	
	
	
	
	FourteenView=[[UIView alloc] initWithFrame:CGRectMake(850,yvalue14,50,-height14)];
	
	
	FourteenView.backgroundColor=[UIColor colorWithRed:(184/255.f) green:(188/255.f) blue:(103/255.f) alpha:1];
	
	
	
	[self.view addSubview:FourteenView];
	
	
	
	/**************************************************************/
	int totalheight=height2+height3;
	int yvalue1=300-totalheight;
	
	float h1=(appDelegate.Same_Vaccination_Cost_Vaccination_UnvaccinatedNumber*100)/firsttotal;
	
	valueThree=(int)roundf(appDelegate.Same_Vaccination_Cost_Vaccination_UnvaccinatedNumber);

	
	
	
	NSLog(@"h1 values is %.2f ",h1);
	int height1=(int)roundf(h1);
	
    	
	
	
	//int height1=(int)roundf(appDelegate.Same_Vaccination_SevereEI_Unvaccinated);
	//int height1=20;
	
	
	
	firstView=[[UIView alloc] initWithFrame:CGRectMake(290,yvalue1,50,-height1)];
	firstView.backgroundColor=[UIColor colorWithRed:(225/255.f) green:(222/255.f) blue:(117/255.f) alpha:1];
	[self.view addSubview:firstView];
	
	
    /***************************************************************************/
	
	
	
	int totalheightone=height5+height6;
	int yvalue4=300-totalheightone;
	
	float h4=(appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee*100)/maximumValue;
	
	
	
	//int h4new=h4*1.6;
	
	int height4=(int)roundf(h4);
	
	
	fourView=[[UIView alloc] initWithFrame:CGRectMake(440,yvalue4,50,-height4)];
	fourView.backgroundColor=[UIColor colorWithRed:(225/255.f) green:(222/255.f) blue:(117/255.f) alpha:1];
	[self.view addSubview:fourView];
	
	
	
	/***************************************************************************************/
	
	int totalheighttwo=height8+height9;
	int yvalue7=300-totalheighttwo;
	
	float h7=(appDelegate.Same_Vaccination_Cost_Vaccination_Annually_With_Guarantee*100)/maximumValue;
	
	
	
	int h7new=h7*1.6;
	
	int height7=(int)roundf(h7new);
	
	
	SevenView=[[UIView alloc] initWithFrame:CGRectMake(570,yvalue7,50,-height7)];
	SevenView.backgroundColor=[UIColor colorWithRed:(225/255.f) green:(222/255.f) blue:(117/255.f) alpha:1];
	[self.view addSubview:SevenView];
	
	
	
	/****************************************************************************************/
	
	
	
	int totalheightthree=height11+height12;
	int yvalue10=300-totalheightthree;
	
	float h10=(appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_No_Guarantee*100)/maximumValue;
	
	int h10new=h10*1.6;
	
	
	
	NSLog(@"h10 values is %.2f ",h10);
	int height10=(int)roundf(h10new);
	
	
	TenView=[[UIView alloc] initWithFrame:CGRectMake(720,yvalue10,50,-height10)];
	TenView.backgroundColor=[UIColor colorWithRed:(225/255.f) green:(222/255.f) blue:(117/255.f) alpha:1];
	[self.view addSubview:TenView];
	
	
	
	/*****************************************************************************************/
	
	
	
	int totalheightfour=height14+height15;
	int yvalue13=300-totalheightfour;
	
	float h13=(appDelegate.Same_Vaccination_Cost_Vaccination_SemiAnnually_With_Guarantee*100)/maximumValue;
	
	
	//int h13new=h13*1.6;
	
	int height13=(int)roundf(h13);
	
	
	
	ThirteenView=[[UIView alloc] initWithFrame:CGRectMake(850,yvalue13,50,-height13)];
	ThirteenView.backgroundColor=[UIColor colorWithRed:(225/255.f) green:(222/255.f) blue:(117/255.f) alpha:1];
	[self.view addSubview:ThirteenView];
	
	
	
	
	
	
	/*****************************************************************************************/
	
	
	
	
	
	
	[super viewDidLoad];

    
	
	
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	
	
	return [myArray count];
	
	
}


// Customize the appearance of table view cells.


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    static NSString *CellIdentifier = @"Cell";
    
   
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault 
                                       reuseIdentifier:CellIdentifier] autorelease];
        
    }    
    

    
    
    	
	cell.textLabel.font=[UIFont fontWithName:@"Arial" size:13];
	cell.textLabel.textAlignment=UITextAlignmentLeft;    
	
	cell.textLabel.text = [myArray objectAtIndex:indexPath.row];
	return cell;
	
	
    
    
    
	
	
	
	
	
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
	
	
	title=[myArray objectAtIndex:indexPath.row];
	
	
	NSLog(@"This is professionTitle Selected %@",title);
	
	
	if ([title isEqualToString:@"Yes, same vaccination strategy on entire premise"]) {
		
		
	}
	
	else {
		
		
	}
	
	
	
	titleLabel.text=title;
	tblSimpleTable.hidden=YES;
	tableImageView.hidden=YES;
	
	
	
	
	
}




-(IBAction)btnClicked{
	
	
	
	flag=0;
	tblSimpleTable.hidden=NO;
	tableImageView.hidden=NO;
	

	

}
/*
-(IBAction)showUpdatesButtonAction1{
	
	
	
	appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee=appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee*number;
	
	
	NSLog(@"Value 1 %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee);
	
	
	
	appDelegate.Same_Vaccination_Cost_Vaccination_Unvaccinated=appDelegate.Same_Vaccination_Cost_Vaccination_Unvaccinated*number;
	
	
	NSLog(@"Value 2 %.2f",appDelegate.Same_Vaccination_Cost_Vaccination_Unvaccinated);
	
	
	
	
	
	costOfVaccinationUVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_Vaccination_Unvaccinated];
	
	
	
	
	
	appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated=appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated*number;
	
	
	
	
	
	NSLog(@"Value 3 %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated);
	
	
	
	
	costOfDaysOfTrainginUVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Unvaccinated];
	
	
	
	
	appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated=appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated*number;
	
	
	NSLog(@"Value 4 %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated);
	
	
	
	costofTreatmentUVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_Treatment_Unvaccinated];
	
	
	
	
    appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee=appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee*number;
	
	
	NSLog(@"Value 5 %.2f",appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee);
	
	
	
	
	costOfVaccinationAVHL.text=[NSString stringWithFormat:@"$%.2f", appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee];
	
	
	
	
	appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee=appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee*number;
	
	
	NSLog(@"Value 6 %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee);
	
	
	costOfDaysOfTrainginAVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_No_Guarantee];
	
	
	
	//appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee=appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee*number;
	
	
	NSLog(@"Value 7 %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee);
	
	
	
	
	
	
	
	
	
	
	
	
	
	costofTreatmentAVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_No_Guarantee];
	
	
	appDelegate.Same_Vaccination_Cost_Vaccination_Annually_With_Guarantee=appDelegate.Same_Vaccination_Cost_Vaccination_Annually_With_Guarantee*number;
	
	
	NSLog(@"Value 8 %.2f",appDelegate.Same_Vaccination_Cost_Vaccination_Annually_With_Guarantee);
	
	
	
	costOfVaccinationAWGVHL.text=[NSString stringWithFormat:@"$%.2f", appDelegate.Same_Vaccination_Cost_Vaccination_Annually_With_Guarantee];
	
	
	appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee=appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee*number;
	
	
	NSLog(@"Value 9 %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee);
	
	
	
	
	costOfDaysOfTrainginAWGVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee];
	
	
	NSLog(@"Value 10 %.2f",appDelegate.Same_Vaccination_Cost_DaysOffTraining_Annually_With_Guarantee);
	
	
	
	appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee=appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee*number;
	
	NSLog(@"Value 11 %.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee);
	
	
	costofTreatmentAWGVHL.text=[NSString stringWithFormat:@"$%.2f",appDelegate.Same_Vaccination_Cost_Treatment_Annually_With_Guarantee];
	
	
	appDelegate.Same_Vaccination_Cost_Vaccination_Semi


Output:
Line 41: error: FinancialImpactViewController.h: No such file or directory
Line 38: error: EconomicDataViewController.h: No such file or directory
Line 30: error: RiskViewController.h: No such file or directory
Line 39: error: ProbabilitiesViewController.h: No such file or directory
Line 30: error: MainViewController.h: No such file or directory
Line 14: error: stray '@' in program
Line 14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FinancialImpactViewController'
Line 16: error: stray '@' in program
Line 17: error: stray '@' in program
Line 17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costOfDaysOfTrainginUVHL'
Line 18: error: stray '@' in program
Line 18: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costofTreatmentUVHL'
Line 19: error: stray '@' in program
Line 19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'number'
Line 20: error: stray '@' in program
Line 20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tblSimpleTable'
Line 21: error: stray '@' in program
Line 21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'myArray'
Line 22: error: stray '@' in program
Line 22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tableImageView'
Line 23: error: stray '@' in program
Line 23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'titleLabel'
Line 24: error: stray '@' in program
Line 24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'title'
Line 25: error: stray '@' in program
Line 25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'btn'
Line 26: error: stray '@' in program
Line 26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costOfVaccinationAVHL'
Line 27: error: stray '@' in program
Line 27: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costOfDaysOfTrainginAVHL'
Line 28: error: stray '@' in program
Line 28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costofTreatmentAVHL'
Line 29: error: stray '@' in program
Line 29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SAnnvaccinatedTotal'
Line 30: error: stray '@' in program
Line 30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SAnnvaccinatedTotalWG'
Line 31: error: stray '@' in program
Line 31: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costOfVaccinationAWGVHL'
Line 32: error: stray '@' in program
Line 32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costOfDaysOfTrainginAWGVHL'
Line 33: error: stray '@' in program
Line 33: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costofTreatmentAWGVHL'
Line 34: error: stray '@' in program
Line 34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costOfVaccinationSAVHL'
Line 35: error: stray '@' in program
Line 35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costOfDaysOfTrainginSAVHL'
Line 36: error: stray '@' in program
Line 36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costofTreatmentSAVHL'
Line 37: error: stray '@' in program
Line 37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costOfVaccinationSAWGVHL'
Line 38: error: stray '@' in program
Line 38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costOfDaysOfTrainginSAWGVHL'
Line 39: error: stray '@' in program
Line 39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'costofTreatmentSAWGVHL'
Line 40: error: stray '@' in program
Line 40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unvaccinatedTotal'
Line 41: error: stray '@' in program
Line 41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AnnvaccinatedTotal'
Line 42: error: stray '@' in program
Line 42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'AnnvaccinatedTotalWG'
Line 43: error: stray '@' in program
Line 43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'firstView'
Line 44: error: stray '@' in program
Line 44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'secondView'
Line 45: error: stray '@' in program
Line 45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'thirdView'
Line 46: error: stray '@' in program
Line 46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fourView'
Line 47: error: stray '@' in program
Line 47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fiveView'
Line 48: error: stray '@' in program
Line 48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SixView'
Line 49: error: stray '@' in program
Line 49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SevenView'
Line 50: error: stray '@' in program
Line 50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'EightView'
Line 51: error: stray '@' in program
Line 51: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NineView'
Line 52: error: stray '@' in program
Line 52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TenView'
Line 53: error: stray '@' in program
Line 53: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ElevenView'
Line 54: error: stray '@' in program
Line 54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TwelveView'
Line 55: error: stray '@' in program
Line 55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ThirteenView'
Line 56: error: stray '@' in program
Line 56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FourteenView'
Line 57: error: stray '@' in program
Line 57: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FifteenView'
Line 58: error: stray '@' in program
Line 58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'labelOne'
Line 59: error: stray '@' in program
Line 59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'labelTwo'
Line 60: error: stray '@' in program
Line 60: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'labelThree'
Line 61: error: stray '@' in program
Line 61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'labelFour'
Line 62: error: stray '@' in program
Line 62: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'maximumValue'
Line 63: error: stray '@' in program
Line 63: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'maximumGraphValue'
Line 64: error: stray '@' in program
Line 64: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'valueOne'
Line 65: error: stray '@' in program
Line 65: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'valueTwo'
Line 66: error: stray '@' in program
Line 66: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'valueThree'
Line 67: error: stray '@' in program
Line 67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'thirdViewBorder'
Line 68: error: stray '@' in program
Line 68: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'testLabel'
Line 69: error: stray '@' in program
Line 69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'subViewLand'
Line 70: error: stray '@' in program
Line 70: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'line1'
Line 71: error: stray '@' in program
Line 71: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'line2'
Line 72: error: stray '@' in program
Line 72: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'line3'
Line 73: error: stray '@' in program
Line 73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'line4'
Line 74: error: stray '@' in program
Line 74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'line5'
Line 75: error: stray '@' in program
Line 75: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'graphViewOne'
Line 76: error: stray '@' in program
Line 76: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'graphViewTwo'
Line 77: error: stray '@' in program
Line 77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'V1'
Line 78: error: stray '@' in program
Line 78: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'V2'
Line 80: error: expected identifier or '(' before '-' token
Line 167: error: expected identifier or '(' before '-' token
Line 209: error: stray '@' in program
Line 233: error: stray '@' in program
Line 249: error: stray '@' in program
Line 250: error: stray '@' in program
Line 251: error: stray '@' in program
Line 252: error: stray '@' in program
Line 271: error: stray '@' in program
Line 272: error: stray '@' in program
Line 273: error: stray '@' in program
Line 275: error: stray '@' in program
Line 278: error: stray '@' in program
Line 279: error: stray '@' in program
Line 280: error: stray '@' in program
Line 281: error: stray '@' in program
Line 300: error: stray '@' in program
Line 301: error: stray '@' in program
Line 302: error: stray '@' in program
Line 304: error: stray '@' in program
Line 325: error: stray '@' in program
Line 326: error: stray '@' in program
Line 327: error: stray '@' in program
Line 329: error: stray '@' in program
Line 347: error: stray '@' in program
Line 348: error: stray '@' in program
Line 349: error: stray '@' in program
Line 351: error: stray '@' in program
Line 371: error: stray '@' in program
Line 372: error: stray '@' in program
Line 373: error: stray '@' in program
Line 375: error: stray '@' in program
Line 395: error: stray '@' in program
Line 396: error: stray '@' in program
Line 397: error: stray '@' in program
Line 399: error: stray '@' in program
Line 418: error: stray '@' in program
Line 419: error: stray '@' in program
Line 420: error: stray '@' in program
Line 422: error: stray '@' in program
Line 444: error: stray '@' in program
Line 445: error: stray '@' in program
Line 446: error: stray '@' in program
Line 448: error: stray '@' in program
Line 467: error: stray '@' in program
Line 468: error: stray '@' in program
Line 469: error: stray '@' in program
Line 471: error: stray '@' in program
Line 489: error: stray '@' in program
Line 490: error: stray '@' in program
Line 491: error: stray '@' in program
Line 493: error: stray '@' in program
Line 513: error: stray '@' in program
Line 514: error: stray '@' in program
Line 515: error: stray '@' in program
Line 517: error: stray '@' in program
Line 537: error: stray '@' in program
Line 538: error: stray '@' in program
Line 539: error: stray '@' in program
Line 541: error: stray '@' in program
Line 561: error: stray '@' in program
Line 562: error: stray '@' in program
Line 563: error: stray '@' in program
Line 565: error: stray '@' in program
Line 584: error: stray '@' in program
Line 585: error: stray '@' in program
Line 586: error: stray '@' in program
Line 588: error: stray '@' in program
Line 609: error: stray '@' in program
Line 610: error: stray '@' in program
Line 611: error: stray '@' in program
Line 613: error: stray '@' in program
Line 633: error: stray '@' in program
Line 639: error: stray '@' in program
Line 657: error: stray '@' in program
Line 665: error: stray '@' in program
Line 674: error: stray '@' in program
Line 693: error: stray '@' in program
Line 749: error: expected identifier or '(' before '-' token
Line 759: error: expected identifier or '(' before '-' token
Line 768: error: expected identifier or '(' before '-' token
Line 778: error: expected identifier or '(' before '-' token
Line 790: error: expected identifier or '(' before '-' token
Line 800: error: expected identifier or '(' before '-' token
Line 816: error: stray '@' in program
Line 820: error: stray '@' in program
Line 828: error: stray '@' in program
Line 829: error: stray '@' in program
Line 835: error: stray '@' in program
Line 843: error: stray '@' in program
Line 857: error: stray '@' in program
Line 866: error: stray '@' in program
Line 873: error: stray '@' in program
Line 899: error: stray '@' in program
Line 908: error: stray '@' in program
Line 919: error: stray '@' in program
Line 929: error: stray '@' in program
Line 943: error: stray '@' in program
Line 954: error: stray '@' in program
Line 968: error: stray '@' in program
Line 976: error: stray '@' in program
Line 1020: error: stray '@' in program
Line 1021: error: stray '@' in program
Line 1025: error: stray '@' in program
Line 1025: error: stray '@' in program
Line 1032: error: stray '@' in program
Line 1038: error: stray '@' in program
Line 1049: error: stray '@' in program
Line 1060: error: stray '@' in program
Line 1077: error: stray '@' in program
Line 1082: error: stray '@' in program
Line 1092: error: stray '@' in program
Line 1102: error: stray '@' in program
Line 1107: error: stray '@' in program
Line 1113: error: stray '@' in program
Line 1125: error: stray '@' in program
Line 1130: error: stray '@' in program
Line 1133: error: stray '@' in program
Line 1137: error: stray '@' in program
Line 1159: error: stray '@' in program
Line 1166: error: stray '@' in program
Line 1178: error: stray '@' in program
Line 1186: error: stray '@' in program
Line 1203: error: stray '@' in program
Line 1211: error: stray '@' in program
Line 1218: error: stray '@' in program
Line 1222: error: stray '@' in program
Line 1237: error: stray '@' in program
Line 1240: error: stray '@' in program
Line 1241: error: stray '@' in program
Line 1242: error: stray '@' in program
Line 1243: error: stray '@' in program
Line 1244: error: stray '@' in program
Line 1245: error: stray '@' in program
Line 1246: error: stray '@' in program
Line 1251: error: stray '@' in program
Line 1252: error: stray '@' in program
Line 1255: error: stray '@' in program
Line 1256: error: stray '@' in program
Line 1257: error: stray '@' in program
Line 1260: error: stray '@' in program
Line 1261: error: stray '@' in program
Line 1262: error: stray '@' in program
Line 1276: error: stray '@' in program
Line 1277: error: stray '@' in program
Line 1278: error: stray '@' in program
Line 1288: error: stray '@' in program
Line 1302: error: stray '@' in program
Line 1304: error: stray '@' in program
Line 1310: error: stray '@' in program
Line 1318: error: stray '@' in program
Line 1323: error: stray '@' in program
Line 1331: error: stray '@' in program
Line 1343: error: stray '@' in program
Line 1365: error: stray '@' in program
Line 1366: error: stray '@' in program
Line 1367: error: stray '@' in program
Line 1368: error: stray '@' in program
Line 1390: error: stray '@' in program
Line 1391: error: stray '@' in program
Line 1392: error: stray '@' in program
Line 1394: error: stray '@' in program
Line 1418: error: stray '@' in program
Line 1419: error: stray '@' in program
Line 1420: error: stray '@' in program
Line 1422: error: stray '@' in program
Line 1444: error: stray '@' in program
Line 1445: error: stray '@' in program
Line 1446: error: stray '@' in program
Line 1448: error: stray '@' in program
Line 1470: error: stray '@' in program
Line 1471: error: stray '@' in program
Line 1472: error: stray '@' in program
Line 1474: error: stray '@' in program
Line 1497: error: stray '@' in program
Line 1498: error: stray '@' in program
Line 1499: error: stray '@' in program
Line 1501: error: stray '@' in program
Line 1524: error: stray '@' in program
Line 1525: error: stray '@' in program
Line 1526: error: stray '@' in program
Line 1528: error: stray '@' in program
Line 1551: error: stray '@' in program
Line 1552: error: stray '@' in program
Line 1553: error: stray '@' in program
Line 1555: error: stray '@' in program
Line 1576: error: stray '@' in program
Line 1577: error: stray '@' in program
Line 1578: error: stray '@' in program
Line 1580: error: stray '@' in program
Line 1601: error: stray '@' in program
Line 1602: error: stray '@' in program
Line 1603: error: stray '@' in program
Line 1605: error: stray '@' in program
Line 1627: error: stray '@' in program
Line 1628: error: stray '@' in program
Line 1629: error: stray '@' in program
Line 1631: error: stray '@' in program
Line 1652: error: stray '@' in program
Line 1653: error: stray '@' in program
Line 1654: error: stray '@' in program
Line 1656: error: stray '@' in program
Line 1679: error: stray '@' in program
Line 1680: error: stray '@' in program
Line 1681: error: stray '@' in program
Line 1683: error: stray '@' in program
Line 1705: error: stray '@' in program
Line 1706: error: stray '@' in program
Line 1707: error: stray '@' in program
Line 1709: error: stray '@' in program
Line 1732: error: stray '@' in program
Line 1733: error: stray '@' in program
Line 1734: error: stray '@' in program
Line 1735: error: stray '@' in program
Line 1780: error: stray '@' in program
Line 1788: error: stray '@' in program
Line 1813: error: stray '@' in program
Line 1822: error: stray '@' in program
Line 1843: error: stray '@' in program
Line 1851: error: stray '@' in program
Line 1876: error: stray '@' in program
Line 1900: error: stray '@' in program
Line 1926: error: stray '@' in program
Line 1961: error: stray '@' in program
Line 1994: error: stray '@' in program
Line 2025: error: stray '@' in program
Line 2058: error: stray '@' in program
Line 2129: error: stray '@' in program
Line 2179: error: expected identifier or '(' before '-' token
Line 2191: error: expected identifier or '(' before '-' token
Line 2193: error: stray '@' in program
Line 2208: error: stray '@' in program
Line 2224: error: expected identifier or '(' before '-' token
Line 2231: error: stray '@' in program
Line 2234: error: stray '@' in program
Line 2259: error: expected identifier or '(' before '-' token
Line 0: error: unterminated comment


Create a new paste based on this one


Comments: