Fix tide calculation everywhere and added black

See title