Here is the program I am basing this off of: https://www.khanacademy.org/cs/challenge-modeling-accretion-disks/1180451277?qa_expand_key=ag5zfmtoYW4tYWNhZGVteXI1CxIIVXNlckRhdGEiEnBldGVyLmNvbGxpbmdyaWRnZQwLEghGZWVkYmFjaxiAgICA8a6-Cgw Here is my program with a few changes: https://www.khanacademy.org/cs/more-realistic-galaxy/5885768234958848 In this I include all different kinds of stars and I can look up their solar mass limits. I also made it like a midnight blue instead of like black so that if a black dwarf evolves you can actually see it. I have a question. Okay I am trying to calculate what the brown dwarf threshold should be given that 500 in the program is = .75 solar masses. I divided .75 by 500 to get the solar masses per unit of mass in the program and it is .0015. I multiplied that by the minimum mass for a brown dwarf which is 13 jupiter masses which is = 0.0124098 solar masses. I multiplied the solar masses per unit by the minimum mass of a brown dwarf and I got 0.0000186147 units of mass for a brown dwarf. Is something wrong with my calculations? Would every star start off as a brown dwarf this way? I mean it is in the lowest luminosity of the main sequence being L, M, and T class but still would every star start off as a brown dwarf this way and is something wrong with my calculations?