In reference to your query, please note that the invoice is to be prepared for Gross Value, i.e. $210.
The other deductions / charges are your expenses.
In reference to your 2nd part, your query is not clear.
However I am assuming from the perspective of GST filing. If that be the case, then you should upload the invoice as and when it is prepared by you.
So in case your invoice is prepared before receipt, you will have to accordingly upload the same in that period in which the said invoice was prepared. In case the invoice is prepared after receipt, then it would be advisable to ensure that the invoice is prepared in the same month as that of receipt and accordingly you may upload the said invoice in the GST portal.
The invoice format as provided by you is correct, save to the extent of valuation part as answered above.
Please advise in case of any further clarification.
Thanks & Regards,
CA Aditya Dhanuka.