How do you balance school and study? I know there's many different questions that involve having a life with a healthy work-life balance but my question is different: I'm looking for a balance between my school life(high school) and studying.

But I don't mean studying for school-related stuff. We usually have enough time to study in class and sometimes during lunch hours. I'm talking about my independent studies involving math and programming.

What's stopping me from doing so? Well, when I get home from school, I only have about 3 to 4 hours until I go to sleep so that leaves me with 3 hours at most to study when you count things like eating, bathing, etc(nothing unnecessary) which is way less than what I want. This is making me loathe school and not want me to pursue a college degree because I feel like if I had more time to do math and programming, I could accomplish much more than I am now and so school is preventing me from reaching my best self. 

I have tried many things. First, I asked my math teacher to put a grade higher for math which she did(I'm in grade 9 but I do grade 10 math) but I find the classes way too easy(I dare say even easier than grade 9 math that my friends are doing) so I bring my own stuff to work on but for some reason, the teacher told me I can't be doing that even if I have done everything she's asked for and am not disturbing anyone else(I asked my teacher to put me up yet another grade but he said no because then when I reach grade 11, I won't have anything to do).

I try to do math in my other classes as well but if the teacher finds out(which, on many occasions, my teachers have), they would just get understandably mad so I need to be really careful to not get caught but that requires me to pay attention to my surroundings which decreases my focus to do math problems. 

I also get tutored by a grad at my local university but we have at most two 2-hour classes per week so although it's definitely helping me, it's not that huge.

My question is, have you ever been in such a situation? If so, what did you do about it and how was the outcome? 

Sorry this is so long, I tried to make it as short as possible:)

Thank you so much for your time!

P.S: I have the tag "work-life-balance" because it's the closest thing I could find to my question but if you think there's a better tag, please feel free to change it
(re-writing my answer after some further reflection)

It seems that right now, you have a burning passion to be studying Math and Computer Science, which is very commendable. However, my advice would be to spend some time now working on a longer-term plan for your future, and how your passion for these areas fits into it. At a basic level, I would suggest a key goal of this plan should be: 'how do I get to a position where I am doing what I am passionate about and getting paid a live-able wage to do it?'

So, your plan might be to go to a top tier college and major in CS, then go on to do a PhD, then become an academic in that area. Or, alternatively, it might be to major in that area and then go and work for a particular company in Industry that is doing work in an area that excites you, which is closely-related to those fields of study.

Then, once you have that longer-term plan, you can look more closely at the details of how can you get to that destination as quickly as possible and what the next step should be. You can also look more closely at what the requirements are for that next step. For example, you can (and should) reach out to some of the top 5 colleges you are planning to apply to, to see what their entrance requirements are.

You might find that they are looking for candidates that are fairly well-rounded and have shown excellence over a range of courses, not just one or two. You might also find that you would need to get a good score on an SAT-style standardized test, which might require knowledge beyond just Math and CS. If this is the case, then you know you can't afford to neglect your other courses. However, knowing that they are required for you to take the next step towards your longer-term goal should give you more motivation to study them, because now they are no longer pointless and irrelevant to your life.

On the other hand, you might find a college that would be willing to take you on sooner, if you are showing exceptional potential in one or two subjects, regardless of your performance in other areas. If that is the case, it might provide you with a quicker path to your destination and then you may be able to afford to slack off a bit more in those other subjects. But, I think it's very important that you verify this first. I.e. you need to do your research to see what options are available for your continued education and what they require.

You might also find that some colleges prefer candidates that can show evidence of extra-curricular activities, such as sports or music. If that is the case, then it might be well worth investing some of your extra time into some of those activities, as a means of helping you to reach your end goal, of being paid to do what you have a passion for. This is probably a healthy thing to do anyway, as it's good to have some balance in your life and make time for social activities and to keep yourself healthy.

So, in summary, give some serious thought to your longer-term plan of where you are going and how you are going to get there. Simply succumbing to the immediate burning desire to study Math and CS might not be the most effective way to realize your long term goals. Unfortunately, the education system has to cater for a very wide range of students and it's not always possible for it to be tailored perfectly for every individual. So, keep an eye on the longer term plan, so that even if you end up spending a year or two doing things that you would ideally not be doing, at least you know they are helping you work towards those goals. As you progress further in the education system, you will find you get more control and say over what subjects you study.

Good luck!