Put the SD card into the 3D printer to read the SD content.
Weigh the whole filament spool to calculate the remaining filament weight on the spool.
Remaining filament weight = total weight - 500g
Make sure you are using the same filament type as what is set in the G-code file.