Navigators call this dead reckoning in reverse: given a start, a direction and a distance, where do you end up? Enter all three and read off the destination coordinates.
Bearings are true bearings from north, clockwise: 0 is north, 90 is east, 180 is south, 270 is west.
The formula walks along a great circle from the start point. Try it with a bearing of 90 degrees from London for 100 km and you land in the North Sea off Essex; due east on a sphere slowly bends towards the equator, which the maths handles for you.