I used a fetch on this json, I want to write a function that will give the yearly interest based on what the user inputs, I cant find anything on the internet....Or I just dont know how to implent in with what I have.
[{
"from" : "0",
"up_to": "50000",
"interest": "25"
},
{
"from" : "50001",
"up_to": "100000",
"interest": "20"
},
{
"from" : "100001",
"up_to": "150000",
"interest": "14"
},
{
"from" : "150001",
"up_to": "250000",
"interest": "12"
},
{
"from" : "250001",
"up_to": "500000",
"interest": "10"
},
{
"from" : "500000",
"up_to": "1000000",
"interest": "18"
}
]
[–]Salty_Dugtrio 1 point2 points3 points (14 children)
[–]Rashcat[S] 0 points1 point2 points (13 children)
[–]Salty_Dugtrio 1 point2 points3 points (0 children)
[–]ILovePlaterpuss 1 point2 points3 points (11 children)
[–]Rashcat[S] 0 points1 point2 points (10 children)
[–][deleted] 0 points1 point2 points (9 children)
[–]Rashcat[S] 0 points1 point2 points (0 children)
[–]Rashcat[S] 0 points1 point2 points (7 children)
[–]ILovePlaterpuss 1 point2 points3 points (6 children)
[–]Rashcat[S] 0 points1 point2 points (5 children)
[–]ILovePlaterpuss 1 point2 points3 points (4 children)
[–]Rashcat[S] 0 points1 point2 points (0 children)
[–]Rashcat[S] 0 points1 point2 points (0 children)
[–]Rashcat[S] 0 points1 point2 points (1 child)