Sunset And Namaz
The timing is sun set and sun rise are recorded. Find the chart,. follow them. You need not to reinvent the wheel. If You read one rakat before sun set or sus rise you can complete your prayer.