Your cost to research the spell do not appear to match the rules listed in the core books. If your research cost are a house rule that Ok but the Core Rule book and the Ultimate Campaign list the following concerning spell research:
Core Rule Book
Independent Research: A wizard can also research a spell independently, duplicating an existing spell or creating an entirely new one. The cost to research a new spell, and the time required, are left up to GM discretion, but it should probably take at least 1 week and cost at least 1,000 gp per level of the spell to be researched. This should also require a number of Spellcraft and Knowledge (arcana) checks.
Ultimate Campaign Book
Research a Spell
The Core Rulebook allows you to perform spell research, either to create a new spell or learn an existing spell from another source. In the downtime system, the steps for spell research each day are as follows.
1.Pay 100 gp × the spell's level for research costs and rare ingredients. You may spend Goods or Magic toward this cost.
2.Determine the total days of progress required to complete the research, which is 7 × the spell level.
3.Determine the spell research DC, which is 10 + twice the spell's level.
4.Attempt a Spellcraft check and a Knowledge check (arcana for an arcane spell, religion for a divine spell) against the spell research DC. You can't take 10 on these checks. You may spend Magic to modify a check result, with 1 point of Magic adding 2 to your total (maximum +10). If both checks succeed, you make 1 day's progress toward completing the spell. When your days of progress equal the total number of days needed, the spell is completed and added to your spellbook or list of spells known.
If either or both spell research checks fail by 4 or less, you make no progress. For each check that fails by 5 or more, your research has led to poor results and you lose a day of progress toward completing the spell.
If you're an alchemist, you can use this downtime option to research a new extract formula. Instead of a Spellcraft check, attempt a Craft (alchemy) check. For Knowledge (arcana) checks, you may attempt a Knowledge (nature) check instead.