The basic formula is: DPCT = average_damage * modifiers / effective_casting_time. (DPCT = Damage Per Cast Time)
average damage usually is easy: (min + max) / 2. min and max are given in the abiliity description. For dots (damage over time effects), sum all the damage it will do during its lifetime.
effective casting time frequently is easy as well: just read the ability description, and subtract bonusses from talent trees.
modifiers usually are the hard part. The descriptions of modifiers might be clear, but it seldomly is clear whether they are additive or multiplicative when combined.
And even if the description from the game is clear, it might be wrong. Tooltips are not always updated the same patch as the code that does the calculations. As SWTOR recently has had a beta with lots of balancing changes, it's a safe bet that some tooltips will be wrong!
Let me give an example: if two effects each increase damage by 10%, the combination could be 10% + 10% = 20% (additive) or 1.1*1.1 = 1.21 = 21% (multiplicative).
Not much of a difference, but elitistjerks will want to be as exact as possible. This is where things get time consuming: use the ability 1000 times, parse the combat log, and see whether it is closer to 20% or 21% on average. A basic knowledge of statistics might be required to know when you've parsed enough log files.
A quicker trick might be to observe the maximum possible. If the maximum hit is e.g. 100, and there are two 10% increasing effects active, a hit of 121 is a clear indication that the modifiers are multiplicative. If you are able to rule out other causes (other modifying effects, crits, level difference with target, ...).
It gets even harder when effects are coupled: e.g. a very good ability with a cooldown of 12 seconds, but only usuable when another effect with a chance of 25% to happen is active. One cannot assume that this ability will be used every 12 seconds, as that other effect might not be active when the cooldown is finished.
In those cases, it might be easier to simulate a combat. Repeat the simulation many times and take the average. Again: a basic knowledge of statistics might be required to know how many times the simulation should be repeated.
Those are the basics.
For more details, just read the elitistjerks posts. WoW is a complicated games, and has many effects, both multiplicative and additive, so formulas can appear to be complicated. However, the basics are still the same.
Once you grasp each and every detail of the simulations, and as a proof have written some simulations yourself, you might consider to change your job :). Those skills are highly wanted by e.g. banks and insurance companies...
Three shards can be combined using an Assembler to form a Matrix Cube; the cubes are then used in your character's Relics slots. There found on all the planets and only in datacrons.
As far as the number, there are 67 datacrons. However, there are a limited number of shards to be found (3 red, 3 yellow, 3 blue, 2 green--98% sure, again).
Here's a video walkthrough with more details on how to use them:
!
This is the most comprehensive guide I could find on the locations of the datacrons (including those with shards):
http://www.republictrooper.com/datacron-locations/
Best Answer
Those figures are supposed to show how many of the item you can make, I believe the fault you have pointed out is because of the systems inability to differentiate between your characters inventory, and yoru cargo hold inventory :S
Additionally the intensity of the colour indicates how much of a boost the item will give the crafting skill when made:
It might be worth popping into the devtracker forum and letting them know about this.