Wrong!
your formula is inaccurate
Here, take these facts;
1. At Level 1 you have 10 stat points to spare
2. Per every level you gain 3 stat points
3. Per 3 Apostolia (Stat) Level you gain 1 stat point
4. By default there's 1 point already in each of your stat and Apostolia (Stat) Level; this level does not count on statement 3. (example let's say your Str in Apostolia is level 3, you gain 0 stat point on it, hence when level 4 you gain 1 stat point)
5. The Maximum point can be distributed to your stat is 255 (256 is what will reflect cause by default you have 1 already), if you have unlocked Apostolia, half of the stat level + 255, if it will result to a decimal figure, round down/floor
your stat points formula goes like this
Let;
Apostolia Str Level = ASL
Apostolia Int Level = AIL
Apostolia Vit Level = AVL
Apostolia Agi Level = AAL
Apostolia Dex Level = ADL
Apostolia Crt Level = ACL
Level = Lvl
Stat points = ((Lvl - 1) * 3) + 10 + ROUNDDOWN((ASL - 1)/3,0) + ROUNDDOWN((AIL - 1)/3,0) + ROUNDDOWN((AVL - 1)/3,0) + ROUNDDOWN((AAL - 1)/3,0) + ROUNDDOWN((ADL - 1)/3,0) + ROUNDDOWN((ACL - 1)/3,0)
Max point to distribute on single stat = 255 + ROUNDDOWN(Lvl/2,0)
so your Residue should be;
R = Stat Points - n(Max point to distribute on single stat)
where n is the number of stat you wish to max. I don't consider this formula cause of its inconvenience and does not consider putting stats on special stat (EXP, IgT, IgR, RD, BL, GR), just compute for Stat Points and the Max Point to distribute on your stat then minus the figures you plan on where to put your stats on.
so to answer your questions on this part;
1. I want 3max stat. I wanna know how much stat left for t 4th stat (vit for example) ?
2. I want 2max stat. How much my space stat point to alocate 3rd stat n apos ?
3. Im curios at what lvl we can hv 4 max stat ?
4. Im overcap. How many stat i can maxed n how much point left ?
I'll be using same assumptions as yours whereas Lvl is 360, 512, and 378 respectively, and all Apostolia Stat Level are at max
1. At Lvl
360, you'll earn
1441 stat points and if you want to max 3 Stats, you'll have a residue of
136 stat points
2. At Lvl
360, you'll earn
1441 stat points and if you want to max 2 Stats, you'll have a residue of
571 stat points
3. At Lvl
512, you'll earn
2053 stat points and if you want to max 4 Stats, you'll have a residue of
9 stat points (actually at lvl 509 you can max 4 stats already with a residue of 2 stat points)
4. At Lvl
378, you'll earn
1513 stat points and if you want to max 3 Stats, you'll have a residue of
181 stat points