Goldfish should be feed 2 or 3 times a day, danios 2 times a day.
It is better to feed more often lesser amounts than everything at once.
For example if you give them 1 gram once a day, give them now 0.3 gram 3 times a day or 0.5 grams 2 times a day.
Honestly after a while you know how a fish should look or not.
So only you are the person who would know if it is enough or not.
If you have to watch some videos on youtube about the fishes, do so.
Soon enough you be able to spot a thin from a fat fish apart without any problem.
If they thin, give them more, if they fat, give less.
I don't think I ever gave me fishes the exact same.
Watch and adjust...