How copy number is calculated
The number of molecules is the number of moles multiplied by Avogadro’s constant (6.022 × 10²³). Moles are mass divided by molecular weight, and the molecular weight of double-stranded DNA is approximately its length in base pairs times 660 g/mol. So copies = mass (g) × 6.022 × 10²³ / (length × 660).
Single-stranded DNA is approximately 330 g/mol per nucleotide and single-stranded RNA about 340 g/mol, which you can choose above.
Making qPCR standards
A standard curve needs a template of known copy number, usually a plasmid or purified amplicon. Measure the concentration, enter the full length of the molecule (for a plasmid, the whole plasmid including the insert), and read off the copies per µL. Then dilute in ten-fold steps to span 5–7 orders of magnitude.
Accuracy
The result is only as good as the concentration measurement. Spectrophotometers overestimate when RNA or protein is present; fluorescence assays specific to dsDNA are more accurate. Linearise plasmids before use as standards when possible, since supercoiled plasmid amplifies differently.